-
Notifications
You must be signed in to change notification settings - Fork 0
/
path.hpp
38 lines (32 loc) · 1.01 KB
/
path.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef PATH_HPP_
#define PATH_HPP_
#include "git-compat-util.hpp"
#ifdef BOOST_HAS_ABI_HEADERS
#include BOOST_ABI_PREFIX
#endif
#ifdef PATH_SEP_BACKSLASH
#define SLASH_STR "\\"
#define SLASH_CHR '\\'
#else
#define SLASH_STR "/"
#define SLASH_CHR '/'
#endif
namespace mgit {
namespace fsutil {
MGIT_DECL ustring get_temporary_name(const ustring &where, const ustring &prefix, bool create = false);
MGIT_DECL bool symlink_usable(const ustring &where);
MGIT_DECL bool hardlink_usable(const ustring &where);
MGIT_DECL bool unix_perm_usable(const ustring &where);
MGIT_DECL bool ignore_case_path(const ustring &where);
MGIT_DECL ustring add_trailing_slash(const ustring &dir);
MGIT_DECL ustring del_trailing_slash(const ustring &dir);
MGIT_DECL ustring remove_file_name(const ustring &fullpath);
MGIT_DECL ustring extract_file_name(const ustring &fullpath);
MGIT_DECL ustring get_exec_path();
MGIT_DECL ustring get_user_config_dir();
}
}
#ifdef BOOST_HAS_ABI_HEADERS
#include BOOST_ABI_SUFFIX
#endif
#endif