fix: recursively create missing FTP paths

This commit is contained in:
Ben Allfree 2024-02-24 05:03:59 -08:00
parent 5ea0a71585
commit 53623fa503

View File

@ -123,7 +123,7 @@ export class PhFs implements FileSystem {
.replace(WIN_SEP_REGEX, sep),
)
if (!existsSync(rootFolderFsPath)) {
mkdirSync(rootFolderFsPath)
mkdirSync(rootFolderFsPath, { recursive: true })
}
}
if (resolvedPath.length > 0) fsPathParts.push(...pathFromRootFolder)