feat(storage): simplify shared path setup and allow passwordless access

This commit is contained in:
阿白叔 committed 2026-10-17 13:59:19 +08:00
1 parent 6c2cc526e6
commit b34d51432d
9 files changed
+101 -21

No files matched your search

+1 -1
View File
@@ -74,6 +74,6 @@ class FileArea{
}
}
class SmbClient{
async area(server){await native.connect(server);const boundary=path.win32.join('\\\\'+server.host,server.share),root=path.win32.join(boundary,...segments(server.directory));return new FileArea(root,{boundary});}
async area(server){if(server.authMode!=='windows')await native.connect(server);const boundary=path.win32.join('\\\\'+server.host,server.share),root=path.win32.join(boundary,...segments(server.directory));return new FileArea(root,{boundary});}
}
module.exports={FileArea,SmbClient,segments,inside,MAX_FILE};