Commit 27b962d1 authored by jacquemier's avatar jacquemier
Browse files

Download and upload ok

parent eeb21ed2
......@@ -153,13 +153,16 @@ def execute(webdav, command, arguments=None):
return webdav.rmdir(arguments)
elif command == 'delete':
return webdav.delete(arguments)
elif command == 'upload':
return webdav.upload(arguments)
elif command == 'download':
#webdav.download("/Jean/cRIO_Data_190917_111435.tdms", "/tmp/test/cRIO_Data_190917_111435.tdms")
elif command == 'upload' or command == 'download':
if len(arguments) !=2:
raise Exception("Download wait 2 arguments remote_path, local_path")
return webdav.download(arguments[0], arguments[1])
if command == 'upload':
#webdav.download(remote_path, local_path)
return webdav.upload(arguments[0], arguments[1])
if command == 'download':
#webdav.upload(local_path, remote_path)
return webdav.download(arguments[0], arguments[1])
......@@ -177,8 +180,8 @@ def main():
mkdirs -a path
rmdir -a path
delete -a file_path
upload -a "local_path_or_fileobj remote_path"
download -a "remote_path, local_path_or_fileobj"
upload -a "local_path remote_path"
download -a "remote_path, local_path"
'''))
parser.add_argument("server")
parser.add_argument("-v", "--verbose", help="increase output verbosity",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment