23 #ifndef MUTT_LIB_PATH_H
24 #define MUTT_LIB_PATH_H
33 bool mutt_path_canon(
char *buf,
size_t buflen,
const char *homedir,
bool is_dir);
34 char *
mutt_path_concat(
char *d,
const char *dir,
const char *fname,
size_t l);
39 bool mutt_path_pretty(
char *buf,
size_t buflen,
const char *homedir,
bool is_dir);
char * mutt_path_dirname(const char *path)
Return a path up to, but not including, the final '/'.
char * mutt_path_escape(const char *src)
Escapes single quotes in a path for a command string.
bool mutt_path_tidy_dotdot(char *buf)
Remove dot-dot-slash from a path.
bool mutt_path_tidy(char *buf, bool is_dir)
Remove unnecessary parts of a path.
const char * mutt_path_basename(const char *f)
Find the last component for a pathname.
bool mutt_path_tilde(char *buf, size_t buflen, const char *homedir)
Expand '~' in a path.
bool mutt_path_to_absolute(char *path, const char *reference)
Convert relative filepath to an absolute path.
char * mutt_path_concat(char *d, const char *dir, const char *fname, size_t l)
Join a directory name and a filename.
bool mutt_path_abbr_folder(char *buf, const char *folder)
Create a folder abbreviation.
bool mutt_path_pretty(char *buf, size_t buflen, const char *homedir, bool is_dir)
Tidy a filesystem path.
const char * mutt_path_getcwd(struct Buffer *cwd)
Get the current working directory.
bool mutt_path_tidy_slash(char *buf, bool is_dir)
Remove unnecessary slashes and dots.
bool mutt_path_canon(char *buf, size_t buflen, const char *homedir, bool is_dir)
Create the canonical version of a path.
bool mutt_path_parent(char *buf)
Find the parent of a path.
size_t mutt_path_realpath(char *buf)
Resolve path, unraveling symlinks.
String manipulation buffer.