Skip to content

Commit

Permalink
Fixed the 'create' method of the 'FileSystem' class which was not cre…
Browse files Browse the repository at this point in the history
…ating more than 1 intermediate
  • Loading branch information
AdrienCastex committed Jul 4, 2017
1 parent efef3eb commit 4b1cb25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/manager/v2/fileSystem/FileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ var FileSystem = (function () {
ctx.getResource(fullPath, function (e, r) {
if (e)
return callback(e);
r.create(CommonTypes_1.ResourceType.Directory, function (e) {
r.create(CommonTypes_1.ResourceType.Directory, true, function (e) {
if (e && e !== Errors_1.Errors.ResourceAlreadyExists)
return callback(e);
go();
Expand Down
2 changes: 1 addition & 1 deletion src/manager/v2/fileSystem/FileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export abstract class FileSystem implements ISerializableFileSystem
if(e)
return callback(e);

r.create(ResourceType.Directory, (e) => {
r.create(ResourceType.Directory, true, (e) => {
if(e && e !== Errors.ResourceAlreadyExists)
return callback(e);

Expand Down

0 comments on commit 4b1cb25

Please sign in to comment.