Browse Source

exportfoldertree

master
Gerry Nelson 5 years ago
parent
commit
539a0c82d2
  1. 4
      exportfoldertree.py

4
exportfoldertree.py

@ -100,7 +100,7 @@ if areyousure.upper() =='Y':
package_name=str(uuid.uuid1()) package_name=str(uuid.uuid1())
json_name=resultdata['items'][i]["name"].replace(" ","")+'_'+str(i) json_name=resultdata['items'][i]["name"].replace(" ","")+'_'+str(i)
command=clicommand+" transfer export -u /folders/folders/'+id+' --name "'+package_name+'"' command=clicommand+' transfer export -u /folders/folders/'+id+' --name "'+package_name+'"'
print(command) print(command)
subprocess.call(command, shell=True) subprocess.call(command, shell=True)
@ -110,7 +110,7 @@ if areyousure.upper() =='Y':
package_id=package_info['items'][0]['id'] package_id=package_info['items'][0]['id']
completefile=os.path.join(path,json_name+'.json') completefile=os.path.join(path,json_name+'.json')
command=clicommand+" transfer download --file '+completefile+' --id '+package_id command=clicommand+' transfer download --file '+completefile+' --id '+package_id
print(command) print(command)
subprocess.call(command, shell=True) subprocess.call(command, shell=True)

Loading…
Cancel
Save