Directory "videos_images" must be created beforehand using the sagemath
cloud GUI, inside the directory with your .sagews worksheet.
To remove all files, in the ./videos_images you can run next cell...but be
careful, removing files !!!
Dominique
# RUN THIS CELL WITH CARE BECAUSE REMOVING FILES
# Cell to remove images files (PNG) stored in videos_images directory
import os
myimagespath = os.path.abspath('./videos_images')
# os.walk() just wal top-down directories
for root, dirs, files in os.walk(myimagespath):
print "root = ",root #
for name in files:
print "file name = ",name
os.remove(myimagespath+'/'+name)
print "images files in videos_images have been deleted"
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.