Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server_name = '192.168.168.12'
- conn = SMBConnection(username=username, password=password, my_name='waldi2'
- remote_name=server_name, domain=domain, use_ntlm_v2=True,
- sign_options=SMBConnection.SIGN_WHEN_SUPPORTED, is_direct_tcp=True)
- connected = conn.connect(server_name, 445)
- # obtain a list of shares:
- Response = conn.listShares(timeout=30) # !!!working, shows e.g.(' Share[', 20, '] =', u'JBW_in')
- os.path.isdir('//192.168.168.12/JBW_out/') # is False with android, True with win7 !??
- shutil.copyfile('/sdcard/waldi2_0/data/stop.txt', '//192.168.168.12/JBW_in/stop.txt')
- [Errno 2] No such file or directory: '//192.168.168.12/JBW_in/stop.txt'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement