pub fn create_parent_dir(file_path: impl AsRef<Path>) -> Result<()>
Creates all parent directories of the given file path.