File manipulation

file_copy() dir_copy() link_copy()

Copy files, directories or links

file_create() dir_create() link_create()

Create files, directories, or links

file_delete() dir_delete() link_delete()

Delete files, directories, or links

file_access() file_exists() dir_exists() link_exists()

Query for existence and access permissions

file_chmod()

Change file permissions

file_chown()

Change owner or group of a file

file_info() file_size()

Query file metadata

file_move()

Move or rename files

file_show()

Open files or directories

file_temp() file_temp_push() file_temp_pop() path_temp()

Create names for temporary files

file_touch()

Change file access and modification times

Directory manipulation

file_copy() dir_copy() link_copy()

Copy files, directories or links

file_create() dir_create() link_create()

Create files, directories, or links

file_delete() dir_delete() link_delete()

Delete files, directories, or links

dir_ls() dir_map() dir_walk() dir_info()

List files

dir_tree()

Print contents of directories in a tree-like format

file_access() file_exists() dir_exists() link_exists()

Query for existence and access permissions

file_copy() dir_copy() link_copy()

Copy files, directories or links

file_create() dir_create() link_create()

Create files, directories, or links

file_delete() dir_delete() link_delete()

Delete files, directories, or links

file_access() file_exists() dir_exists() link_exists()

Query for existence and access permissions

link_path()

Read the value of a symbolic link

Path manipulation

path() path_wd()

Construct path to a file or directory

file_temp() file_temp_push() file_temp_pop() path_temp()

Create names for temporary files

path_expand() path_expand_r() path_home() path_home_r()

Finding the User Home Directory

path_file() path_dir() path_ext() path_ext_remove() path_ext_set() `path_ext<-`()

Manipulate file paths

path_filter()

Filter paths

path_real() path_split() path_join() path_abs() path_norm() path_rel() path_common() path_has_parent()

Path computations

path_package()

Construct a path to a location within an installed or development package

path_sanitize()

Sanitize a filename by removing directory paths and invalid characters

path_tidy()

Tidy paths

Helpers

is_file() is_dir() is_link() is_file_empty()

Functions to test for file types

as_fs_path() fs_path()

File paths

as_fs_bytes() fs_bytes()

Human readable file sizes

as_fs_perms() fs_perms()

Create, modify and view file permissions