NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
File management functions

Commonly used file/dir management routines.

The following unused functions were removed:

  • mutt_file_chmod()
  • mutt_file_chmod_rm()

Functions

Function Description Links
buf_file_expand_fmt_quote() Replace s in a string with a filename
buf_quote_filename() Quote a filename to survive the shell's quoting rules
mkwrapdir() Create a temporary directory next to a file name
mutt_file_check_empty() Is the mailbox empty
mutt_file_chmod_add() Add permissions to a file
mutt_file_chmod_add_stat() Add permissions to a file
mutt_file_chmod_rm_stat() Remove permissions from a file
mutt_file_copy_bytes() Copy some content from one file to another
mutt_file_copy_stream() Copy the contents of one file into another
mutt_file_decrease_mtime() Decrease a file's modification time by 1 second
mutt_file_expand_fmt() Replace s in a string with a filename
mutt_file_fclose_full() Close a FILE handle (and NULL the pointer)
mutt_file_fopen_full() Call fopen() safely
mutt_file_fsync_close() Flush the data, before closing a file (and NULL the pointer)
mutt_file_get_size() Get the size of a file
mutt_file_get_size_fp() Get the size of a file
mutt_file_get_stat_timespec() Read the stat() time into a time value
mutt_file_iter_line() Iterate over the lines from an open file pointer
mutt_file_lock() (Try to) Lock a file using fcntl()
mutt_file_lock() (Try to) Lock a file using flock()
mutt_file_map_lines() Process lines of text read from a file pointer
mutt_file_mkdir() Recursively create directories
mutt_file_open() Open a file
mutt_file_opendir() Open a directory
mutt_file_read_keyword() Read a keyword from a file
mutt_file_read_line() Read a line from a file
mutt_file_rename() Rename a file
mutt_file_resolve_symlink() Resolve a symlink in place
mutt_file_rmtree() Recursively remove a directory
mutt_file_rotate() Rotate a set of numbered files
mutt_file_safe_rename() NFS-safe renaming of files
mutt_file_sanitize_filename() Replace unsafe characters in a filename
mutt_file_sanitize_regex() Escape any regex-magic characters in a string
mutt_file_save_str() Save a string to a file
mutt_file_seek() fseeko with error handling
mutt_file_set_mtime() Set the modification time of one file from another
mutt_file_stat_compare() Compare two stat infos
mutt_file_stat_timespec_compare() Compare stat info with a time value
mutt_file_symlink() Create a symlink
mutt_file_timespec_compare() Compare to time values
mutt_file_touch_atime() Set the access time to current time
mutt_file_unlink() Delete a file, carefully
mutt_file_unlink_empty() Delete a file if it's empty
mutt_file_unlock() Unlock a file previously locked by mutt_file_lock()
mutt_file_unlock() Unlock a file previously locked by mutt_file_lock()
put_file_in_place() Move a file into place
stat_equal() Compare the struct stat's of two files/dirs