geonature.utils.filemanager#

Functions#

removeDisallowedFilenameChars(uncleanString)

delete_recursively(path_folder[, period, excluded_files])

Delete all the files and directory inside a directory

generate_pdf(template, data)

Module Contents#

geonature.utils.filemanager.removeDisallowedFilenameChars(uncleanString)[source]#
geonature.utils.filemanager.delete_recursively(path_folder, period=1, excluded_files=[])[source]#

Delete all the files and directory inside a directory which have been create before a certain period Paramters:

path_folder(string): path to the fomlder to delete period(integer): in days: delete the file older than this period exluded_files(list<string>): list of files to not delete

geonature.utils.filemanager.generate_pdf(template, data)[source]#