FS Module
file system module
This module provide helper function to deal with the working directory of a run
- parflow.tools.fs.chdir(directory_path)
Change the current working directory.
- parflow.tools.fs.cp(source, target_path='.')
Copying file/directory within python script
- parflow.tools.fs.exists(file_path)
Return True if the given path exists.
- parflow.tools.fs.get_absolute_path(file_path)
Helper function to resolve a file path while using the proper working directory.
Return: Absolute file path
- parflow.tools.fs.get_text_file_content(file_path)
Read a text file and return its contents as a string.
- parflow.tools.fs.mkdir(dir_name)
mkdir within python script
- parflow.tools.fs.rm(path)
Deleting file/directory within python script