24#ifndef MUTT_MUTT_PATH_H
25#define MUTT_MUTT_PATH_H
bool mutt_path_tidy_dotdot(char *buf)
Remove dot-dot-slash from a path.
const char * mutt_path_basename(const char *path)
Find the last component for a pathname.
bool mutt_path_tidy(struct Buffer *path, bool is_dir)
Remove unnecessary parts of a path.
bool mutt_path_to_absolute(char *path, const char *reference)
Convert a relative path to its absolute form.
bool mutt_path_canon(struct Buffer *path, const char *homedir, bool is_dir)
Create the canonical version of a path.
char * mutt_path_escape(const char *src)
Escapes single quotes in a path for a command string.
char * mutt_path_dirname(const char *path)
Return a path up to, but not including, the final '/'.
bool mutt_path_tidy_slash(char *buf, bool is_dir)
Remove unnecessary slashes and dots.
bool mutt_path_abbr_folder(struct Buffer *path, const char *folder)
Create a folder abbreviation.
size_t mutt_path_realpath(struct Buffer *path)
Resolve path, unraveling symlinks.
bool mutt_path_tilde(struct Buffer *path, const char *homedir)
Expand '~' in a path.
const char * mutt_path_getcwd(struct Buffer *cwd)
Get the current working directory.
String manipulation buffer.