Line 50... |
Line 50... |
50 |
TDirectory() = default;
|
50 |
TDirectory() = default;
|
51 |
explicit TDirectory(const std::string& p) : path{p} {}
|
51 |
explicit TDirectory(const std::string& p) : path{p} {}
|
52 |
|
52 |
|
53 |
int readDir();
|
53 |
int readDir();
|
54 |
int readDir(const std::string& p);
|
54 |
int readDir(const std::string& p);
|
55 |
int scanFiles(const std::string& filter);
|
55 |
int scanFiles(const std::string& filter, bool start=false);
|
56 |
size_t getNumEntries();
|
56 |
size_t getNumEntries();
|
57 |
void setPath(const std::string& p) { path.assign(p); }
|
57 |
void setPath(const std::string& p) { path.assign(p); }
|
58 |
void setStripPath(bool b) { strip = b; }
|
58 |
void setStripPath(bool b) { strip = b; }
|
59 |
size_t getFileSize(const std::string& f);
|
59 |
size_t getFileSize(const std::string& f);
|
60 |
bool isFile(const std::string& f);
|
60 |
bool isFile(const std::string& f);
|
Line 67... |
Line 67... |
67 |
bool drop(const std::string& path);
|
67 |
bool drop(const std::string& path);
|
68 |
bool dropDir(const std::string& path);
|
68 |
bool dropDir(const std::string& path);
|
69 |
bool dropFile(const std::string& fname);
|
69 |
bool dropFile(const std::string& fname);
|
70 |
std::string getEntryWithEnd(const std::string& end);
|
70 |
std::string getEntryWithEnd(const std::string& end);
|
71 |
std::string getEntryWithPart(const std::string& part, bool precice=true);
|
71 |
std::string getEntryWithPart(const std::string& part, bool precice=true);
|
- |
|
72 |
std::string getEntryWithStart(const std::string& start);
|
72 |
bool testDirectory(unsigned short att) { return (att & ATTR_DIRECTORY); }
|
73 |
bool testDirectory(unsigned short att) { return (att & ATTR_DIRECTORY); }
|
73 |
bool testText(unsigned short att) { return (att & ATTR_TEXT); }
|
74 |
bool testText(unsigned short att) { return (att & ATTR_TEXT); }
|
74 |
bool testGraphic(unsigned short att) { return (att & ATTR_GRAPHIC); }
|
75 |
bool testGraphic(unsigned short att) { return (att & ATTR_GRAPHIC); }
|
75 |
bool testSound(unsigned short att) { return (att & ATTR_SOUND); }
|
76 |
bool testSound(unsigned short att) { return (att & ATTR_SOUND); }
|
76 |
bool testLink(unsigned short att) { return (att & ATTR_LINK); }
|
77 |
bool testLink(unsigned short att) { return (att & ATTR_LINK); }
|