SS1984 - Modules - Types

code/__HELPERS/files.dm

/proc/wrap_fileSecurity helpers to ensure you cant arbitrarily load stuff from disk
/proc/return_file_textchecks if a file exists and contains text returns text as a string if these conditions are met
/proc/pathwalkTakes a directory and returns every file within every sub directory. If extensions_filter is provided then only files that end in that extension are given back. If extensions_filter is a list, any file that matches at least one entry is given back.
/proc/md5filepathReturns the md5 of a file at a given path.
/proc/md5asfileSave file as an external file then md5 it. Used because md5ing files stored in the rsc sometimes gives incorrect md5 results.
/proc/sanitize_filepathSanitizes the name of each node in the path.
/proc/is_file_type_in_listVerifys wether a string or file ends with a given file type.
/proc/is_file_typeVerifys wether a string or file ends with a given file type