23#ifndef MUTT_MUTT_PATH_H
24#define MUTT_MUTT_PATH_H
34char *
mutt_path_concat(
char *dest,
const char *dir,
const char *file,
size_t dlen);
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 relative filepath to an absolute path.
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.
bool mutt_path_parent(struct Buffer *path)
Find the parent of a path.
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.
char * mutt_path_concat(char *dest, const char *dir, const char *file, size_t dlen)
Join a directory name and a filename.
bool mutt_path_pretty(struct Buffer *path, const char *homedir, bool is_dir)
Tidy a filesystem path.
String manipulation buffer.