mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02:00
Creating atts directory when needed.
This commit is contained in:
@@ -91,6 +91,7 @@ public class WLDirectoryNode implements PersistentStoreSource, PersistentStoreUp
|
||||
public WLDirectoryNode createFromRawDirectoryContents(RawDirectoryContents rawDirectoryContents, File attachmentDirectory) throws IOException, FailedConnectionException {
|
||||
Map<String, FileNode> candidateFileNodeTable = new HashMap<String, FileNode>();
|
||||
File projectAttDirectory = new File(attachmentDirectory, projectName);
|
||||
projectAttDirectory.mkdirs();
|
||||
WLFileStore.deleteInDirectory(projectAttDirectory);
|
||||
for (Entry<String, byte[]> fileContents : rawDirectoryContents.getFileContentsTable().entrySet()) {
|
||||
BlobNode blobNode = new BlobNode(new RepositoryFile(fileContents), fileNodeTable, projectAttDirectory);
|
||||
|
||||
Reference in New Issue
Block a user