fix(ff01): Windows Cloudcmd root compatibility + accepted CI [skip ci]
PR #12 approved six-file scope. Tested non-note blobs at 36a1c5bf01, CI #113 7/7 + #119 and #120 SUCCESS. Follow-up only 3 evidence notes. Runtime 20 Moderate unresolved, production NO-GO.
This commit was merged in pull request #12.
This commit is contained in:
1 parent
1e2cd31aef
commit
8da1f6a852
6 files changed
+57
-1
No files matched your search
@@ -1011,6 +1011,16 @@ async function mountFilesManager({
|
||||
let initErrorMessage = '';
|
||||
|
||||
try {
|
||||
// restafary treats drive-qualified Windows storage roots as cwd-relative.
|
||||
// Only Cloudcmd needs a portable root; keep the guard and exported root absolute.
|
||||
if (process.platform === 'win32') {
|
||||
const relativeRoot = path.relative(process.cwd(), resolvedRoot);
|
||||
if (path.isAbsolute(relativeRoot)) {
|
||||
throw new Error('Windows Cloudcmd storage root must be on the server drive.');
|
||||
}
|
||||
configOptions.root = relativeRoot ? `./${relativeRoot.replaceAll('\\', '/')}` : '.';
|
||||
}
|
||||
|
||||
const cloudcmdPkg = await import('cloudcmd');
|
||||
const cloudcmdFn = cloudcmdPkg.cloudcmd || cloudcmdPkg.default;
|
||||
const createConfigManager =
|
||||
|
||||
Reference in new issue
Block a user