File transfer example
This commit is contained in:
parent
5d977e09fb
commit
6cb30d778d
@ -413,6 +413,7 @@ def download_concluded(resource):
|
|||||||
global menu_mode, current_filename
|
global menu_mode, current_filename
|
||||||
saved_filename = current_filename
|
saved_filename = current_filename
|
||||||
|
|
||||||
|
if resource.status == RNS.Resource.COMPLETE:
|
||||||
counter = 0
|
counter = 0
|
||||||
while os.path.isfile(saved_filename):
|
while os.path.isfile(saved_filename):
|
||||||
counter += 1
|
counter += 1
|
||||||
@ -425,6 +426,8 @@ def download_concluded(resource):
|
|||||||
menu_mode = "download_concluded"
|
menu_mode = "download_concluded"
|
||||||
except:
|
except:
|
||||||
menu_mode = "save_error"
|
menu_mode = "save_error"
|
||||||
|
else:
|
||||||
|
menu_mode = "download_concluded"
|
||||||
|
|
||||||
|
|
||||||
# A convenience function for clearing the screen
|
# A convenience function for clearing the screen
|
||||||
|
Loading…
Reference in New Issue
Block a user