mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-04 05:40:13 -05:00
move Path object to separate file
This commit is contained in:
parent
23cca83742
commit
2bd44568a1
23 changed files with 98 additions and 65 deletions
26
src/fs.hpp
26
src/fs.hpp
|
|
@ -29,6 +29,8 @@
|
|||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include "path.hpp"
|
||||
|
||||
namespace fs
|
||||
{
|
||||
using std::size_t;
|
||||
|
|
@ -36,30 +38,6 @@ namespace fs
|
|||
using std::vector;
|
||||
using std::map;
|
||||
|
||||
struct Path
|
||||
{
|
||||
Path() {}
|
||||
|
||||
explicit
|
||||
Path(const string &b,
|
||||
const string &f)
|
||||
: base(b),
|
||||
full(f)
|
||||
{}
|
||||
|
||||
explicit
|
||||
Path(const char *b,
|
||||
const string &f)
|
||||
: base(b),
|
||||
full(f)
|
||||
{}
|
||||
|
||||
string base;
|
||||
string full;
|
||||
};
|
||||
|
||||
typedef vector<Path> Paths;
|
||||
|
||||
string dirname(const string &path);
|
||||
string basename(const string &path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue