Copies all files of a directory to another one except the files
with the extensions given in the ext_blacklist
array
This function creates a file and returns it. But before creating the file
it checks every directory in the path to see if it exists,
and if it does not it will be created.
Naively replaces any path separator with a forward-slash ‘/’
Takes a path and returns a path containing just enough ../
to point to
the root of the given path.
Removes all the content of a directory but not the directory itself
Write the given data to a file, creating it first if necessary