@@ -798,8 +798,8 @@ func (fs *FileSystem) createWorkspaceInput(t *bolt.Tx, workspaceId string, workI
798
798
if err := putM2KIgnore (archExpDir ); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
799
799
return fmt .Errorf ("failed to create a m2kignore file at the path %s . Error: %q" , archExpDir , err )
800
800
}
801
- if err := os . MkdirAll (archiveExpandedPath , DEFAULT_DIRECTORY_PERMISSIONS ); err != nil {
802
- return fmt .Errorf ("failed to create a directory at the path %s . Error: %w" , archiveExpandedPath , err )
801
+ if err := putM2KIgnore (archiveExpandedPath ); err != nil {
802
+ return fmt .Errorf ("failed to create a m2kignore file at the path %s . Error: %w" , archiveExpandedPath , err )
803
803
}
804
804
// write the archive they uploaded
805
805
f , err := os .OpenFile (archivePath , os .O_WRONLY | os .O_CREATE , DEFAULT_FILE_PERMISSIONS )
@@ -927,8 +927,8 @@ func (fs *FileSystem) createProjectInput(t *bolt.Tx, workspaceId, projectId stri
927
927
if err := putM2KIgnore (archExpDir ); err != nil { // also creates the directory if it doesn't exist, overwrites if it does exist
928
928
return fmt .Errorf ("failed to create a m2kignore file at the path %s . Error: %q" , archExpDir , err )
929
929
}
930
- if err := os . MkdirAll (archiveExpandedPath , DEFAULT_DIRECTORY_PERMISSIONS ); err != nil {
931
- return fmt .Errorf ("failed to create a directory at the path %s . Error: %w" , archiveExpandedPath , err )
930
+ if err := putM2KIgnore (archiveExpandedPath ); err != nil {
931
+ return fmt .Errorf ("failed to create a m2kignore file at the path %s . Error: %w" , archiveExpandedPath , err )
932
932
}
933
933
// write the archive they uploaded
934
934
f , err := os .OpenFile (archivePath , os .O_WRONLY | os .O_CREATE , DEFAULT_FILE_PERMISSIONS )
0 commit comments