/tg/ Station 13 - Modules - Types

code/__HELPERS/files.dm

/proc/pathwalk Takes 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/md5filepath Returns the md5 of a file at a given path.
/proc/md5asfile Save file as an external file then md5 it. Used because md5ing files stored in the rsc sometimes gives incorrect md5 results.
/proc/sanitize_filepath Sanitizes the name of each node in the path.