fix salvataggio
This commit is contained in:
@@ -243,6 +243,12 @@ def data_export():
|
||||
/bin/mount /dev/sd[a-z] /mnt/USB
|
||||
fi
|
||||
"""
|
||||
|
||||
scriptUnmount = """
|
||||
sync
|
||||
/bin/umount /mnt/USB
|
||||
"""
|
||||
|
||||
os.system("bash -c '%s'" % scriptMount)
|
||||
usbDrive='/mnt/USB/'
|
||||
dataDestination = (usbDrive+currentFolder)
|
||||
@@ -251,6 +257,7 @@ def data_export():
|
||||
else:
|
||||
os.mkdir(dataDestination)
|
||||
copy_tree(workingDirectory, dataDestination)
|
||||
os.system("bash -c '%s'" % scriptUnmount)
|
||||
return redirect("/logger")
|
||||
|
||||
@flaskApp.route("/api/v1/data/delete", methods=['PUT'])
|
||||
|
||||
Reference in New Issue
Block a user