initial commit
This commit is contained in:
commit
4b60ece582
327 changed files with 28286 additions and 0 deletions
33
lib/tools/file.h
Normal file
33
lib/tools/file.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#ifndef TOOLS_FILE_H
|
||||
#define TOOLS_FILE_H
|
||||
|
||||
#include <wType/string.h>
|
||||
|
||||
#include <list>
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace T {
|
||||
|
||||
class File
|
||||
{
|
||||
public:
|
||||
File(const W::String& p_path);
|
||||
~File();
|
||||
|
||||
const W::String& getPath() const;
|
||||
W::String suffix() const;
|
||||
W::String nameWithoutSuffix() const;
|
||||
W::String name() const;
|
||||
W::String parentDirectory() const;
|
||||
|
||||
static bool readDirectoryRecursive(const W::String& path, std::list<File>* result);
|
||||
|
||||
private:
|
||||
W::String path;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // TOOLS_FILE_H
|
Loading…
Add table
Add a link
Reference in a new issue