feat(storage): simplify shared path setup and allow passwordless access
This commit is contained in:
1 parent
6c2cc526e6
commit
b34d51432d
9 files changed
+101
-21
No files matched your search
@@ -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};
|
||||
Reference in new issue
Block a user