feat(storage): browse SMB shares and bound connection checks
This commit is contained in:
1 parent
8417b1dff8
commit
a785fa73d4
15 files changed
+277
-39
No files matched your search
@@ -74,6 +74,7 @@ class FileArea{
|
||||
}
|
||||
}
|
||||
class SmbClient{
|
||||
async browse(server,options){return require('./smb-probe.cjs').probe(server,options);}
|
||||
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