package containers
Module CCIO.FileSource
A file should be represented by its absolute path, but currently this is not enforced.
remove_exn path tries to remove the file at path from the file system.
read_dir d returns a sequence of files and directory contained in the directory d (or an empty stream if d is not a directory).
Append the given string into the given file, possibly raising.
Write the given string into the given file, possibly raising.
walk p generates the files and directories contained in a directory tree by walking the tree. walk treats anything for which is_directory returns false (including symlinks, etc.) as a file.
The argument is treated as part of its own directory tree, so the result of walk p always includes p.
This is similar to read_dir with recurse=true, except that read_dir with recurse=true only generates file entries.
Like walk but returns a list (therefore it's eager and might take some time on large directories).
with_temp ~prefix ~suffix f will call f with the name of a new temporary file (located in temp_dir). After f returns, the file is deleted. Best to be used in combination with with_out. See Filename.temp_file.