20 #include <ubit/unode.hpp> 55 static const int DIR, FILE,
LINK;
56 int getMode()
const {
return mode;}
71 UFileInfo(
const char* fullpath,
const char* fname);
74 void setPath(
const UStr& path);
80 unsigned long getSize()
const {
return size;}
83 unsigned long getModTime()
const {
return modtime;}
86 UIma& getIconImage()
const;
91 UIma& getMiniIconImage()
const;
96 void getInfoString(
UStr& str)
const;
99 enum PrefixType {LOCAL, SSH, HTTP, FTP};
100 static int parsePrefix(
const UStr& path);
107 unsigned long modtime;
109 void stat(
const char* path);
114 typedef std::vector<UFileInfo*> UFileInfos;
125 void read(
const UStr& path);
130 void read(
const UStr& path,
const UStr& prefix,
const UStr& filter,
bool with_dot_files);
139 void readRemote(
const UStr& path,
const UStr& prefix,
const UStr& filter,
bool with_dot_files);
144 const UStr& getPath()
const;
153 static void expandDirPath(
UStr& dirpath);
160 UFileInfos file_infos;
161 std::vector<UStr*> filters;
163 static void parseFilter(std::vector<UStr*>& filters,
const UStr& filter);
171 static void createCache();
172 static void cleanCache();
174 static const UStr& getCachePath();
176 static UStr* createFullPath(
const UStr& path);
179 static const UStr* getOrCreateFullPath(
const UStr& path);
182 static bool getCachePath(
const UStr& url,
int path_type,
file cache for SSH.
Definition: ufile.hpp:169
file info.
Definition: ufile.hpp:66
Image.
Definition: uima.hpp:50
const UStr * getFileName() const
returns the file name (without the path).
Definition: ufile.hpp:77
Icon box.
Definition: uicon.hpp:52
const UFileInfos & getFileInfos() const
returns the (filtered) file entries of the directory.
Definition: ufile.hpp:150
File Directory.
Definition: ufile.hpp:119
File status returned by functions that open files.
Definition: ufile.hpp:26
file mode.
Definition: ufile.hpp:45
Definition: uhardfont.hpp:31
static const int LINK
modes
Definition: ufile.hpp:55
Definition: ufilebox.hpp:49
Ubit String.
Definition: ustr.hpp:72