mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 22:42:40 +00:00
Creating atts directory when needed.
This commit is contained in:
parent
0442cd7e0b
commit
b51b37f71f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue