fix: database is locked when using sqlite

This commit is contained in:
HFO4
2022-04-22 15:56:45 +08:00
parent ff22f5c8b9
commit f8b7e086ba
3 changed files with 9 additions and 8 deletions

View File

@@ -424,11 +424,9 @@ func (fs *FileSystem) CreateDirectory(ctx context.Context, fullPath string) (*mo
_, err := newFolder.Create()
if err != nil {
if _, ok := ctx.Value(fsctx.IgnoreDirectoryConflictCtx).(bool); !ok {
return nil, fmt.Errorf("failed to create folder: %w", err)
}
return nil, fmt.Errorf("failed to create folder: %w", err)
}
return &newFolder, nil
}