(self, share, ip)
| 520 | print(LINE) |
| 521 | |
| 522 | def do_listFiles(self, share, ip): |
| 523 | retList = [] |
| 524 | retFiles = [] |
| 525 | retInt = 0 |
| 526 | try: |
| 527 | for LINE in self.smb.listPath(self.share, ip): |
| 528 | if(LINE.get_longname() == "." or LINE.get_longname() == ".."): |
| 529 | pass |
| 530 | else: |
| 531 | retInt = retInt + 1 |
| 532 | print(ip.strip("*").replace("//","/") + LINE.get_longname()) |
| 533 | if(LINE.is_directory()): |
| 534 | retval = ip.strip("*").replace("//","/") + LINE.get_longname() |
| 535 | retList.append(retval) |
| 536 | else: |
| 537 | retval = ip.strip("*").replace("//","/") + LINE.get_longname() |
| 538 | retFiles.append(retval) |
| 539 | except: |
| 540 | pass |
| 541 | return retList,retFiles,retInt |
| 542 | |
| 543 | def do_tree(self, filepath): |
| 544 | folderList = [] |
no test coverage detected