NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
path.h
Go to the documentation of this file.
1
23
24
#ifndef MUTT_MUTT_PATH_H
25
#define MUTT_MUTT_PATH_H
26
27
#include <stdbool.h>
28
#include <stdio.h>
29
30
struct
Buffer
;
31
32
bool
mutt_path_abbr_folder
(
struct
Buffer
*path,
const
char
*folder);
33
const
char
*
mutt_path_basename
(
const
char
*path);
34
bool
mutt_path_canon
(
struct
Buffer
*path,
const
char
*homedir,
bool
is_dir);
35
char
*
mutt_path_dirname
(
const
char
*path);
36
char
*
mutt_path_escape
(
const
char
*src);
37
const
char
*
mutt_path_getcwd
(
struct
Buffer
*cwd);
38
size_t
mutt_path_realpath
(
struct
Buffer
*path);
39
bool
mutt_path_tidy
(
struct
Buffer
*path,
bool
is_dir);
40
bool
mutt_path_tidy_dotdot
(
char
*buf);
41
bool
mutt_path_tidy_slash
(
char
*buf,
bool
is_dir);
42
bool
mutt_path_tilde
(
struct
Buffer
*path,
const
char
*homedir);
43
bool
mutt_path_to_absolute
(
char
*path,
const
char
*reference);
44
45
#endif
/* MUTT_MUTT_PATH_H */
mutt_path_tidy_dotdot
bool mutt_path_tidy_dotdot(char *buf)
Remove dot-dot-slash from a path.
Definition
path.c:109
mutt_path_basename
const char * mutt_path_basename(const char *path)
Find the last component for a pathname.
Definition
path.c:282
mutt_path_tidy
bool mutt_path_tidy(struct Buffer *path, bool is_dir)
Remove unnecessary parts of a path.
Definition
path.c:169
mutt_path_to_absolute
bool mutt_path_to_absolute(char *path, const char *reference)
Convert a relative path to its absolute form.
Definition
path.c:333
mutt_path_canon
bool mutt_path_canon(struct Buffer *path, const char *homedir, bool is_dir)
Create the canonical version of a path.
Definition
path.c:248
mutt_path_escape
char * mutt_path_escape(const char *src)
Escapes single quotes in a path for a command string.
Definition
path.c:433
mutt_path_dirname
char * mutt_path_dirname(const char *path)
Return a path up to, but not including, the final '/'.
Definition
path.c:312
mutt_path_tidy_slash
bool mutt_path_tidy_slash(char *buf, bool is_dir)
Remove unnecessary slashes and dots.
Definition
path.c:58
mutt_path_abbr_folder
bool mutt_path_abbr_folder(struct Buffer *path, const char *folder)
Create a folder abbreviation.
Definition
path.c:399
mutt_path_realpath
size_t mutt_path_realpath(struct Buffer *path)
Resolve path, unraveling symlinks.
Definition
path.c:377
mutt_path_tilde
bool mutt_path_tilde(struct Buffer *path, const char *homedir)
Expand '~' in a path.
Definition
path.c:194
mutt_path_getcwd
const char * mutt_path_getcwd(struct Buffer *cwd)
Get the current working directory.
Definition
path.c:476
Buffer
String manipulation buffer.
Definition
buffer.h:36