Quellcode durchsuchen

Creating atts directory when needed.

Winston Li vor 12 Jahren
Ursprung
Commit
b51b37f71f

+ 1 - 0
services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/filestore/node/WLDirectoryNode.java

@@ -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);