From 4b1cb25560316bfbe5a0376f65ce27beb8d3c8b3 Mon Sep 17 00:00:00 2001 From: Adrien Castex Date: Tue, 4 Jul 2017 11:25:50 +0200 Subject: [PATCH] Fixed the 'create' method of the 'FileSystem' class which was not creating more than 1 intermediate --- lib/manager/v2/fileSystem/FileSystem.js | 2 +- src/manager/v2/fileSystem/FileSystem.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/manager/v2/fileSystem/FileSystem.js b/lib/manager/v2/fileSystem/FileSystem.js index f54592dc..7e5767c0 100644 --- a/lib/manager/v2/fileSystem/FileSystem.js +++ b/lib/manager/v2/fileSystem/FileSystem.js @@ -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(); diff --git a/src/manager/v2/fileSystem/FileSystem.ts b/src/manager/v2/fileSystem/FileSystem.ts index 38d966b6..8e48c654 100644 --- a/src/manager/v2/fileSystem/FileSystem.ts +++ b/src/manager/v2/fileSystem/FileSystem.ts @@ -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);