Skip to content

Commit e92da83

Browse files
committed
Update upload_smb.py
1 parent 2062e8d commit e92da83

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/task/upload_smb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ def Init(self, nasInfo):
2222
self.port = nasInfo.port
2323
self.password = nasInfo.passwd
2424
self.username = nasInfo.user
25+
self.path = nasInfo.path
26+
2527
datas = nasInfo.path.strip("/").split("/")
2628

2729
self.service_name = datas[0]
@@ -35,6 +37,7 @@ def Connect(self):
3537
result = self.client.connect(self.address, self.port, timeout=5)
3638
else:
3739
result = self.client.connect(self.address, timeout=5)
40+
self.client.listPath(self.service_name, "/")
3841
self.isLink = True
3942
if not result:
4043
return Str.CvAuthError

0 commit comments

Comments
 (0)