Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_Dir.dox.h
1 
2 namespace Qore {
4 
13 class Dir {
14 
15 public:
17 
32 bool chdir(string path);
33 
34 public:
36 
57 nothing chgrp(int gid);
58 
59 public:
61 
83 nothing chgrp(string groupname);
84 
85 public:
87 
105 nothing chmod(softint mode);
106 
107 public:
109 
130 nothing chown(int uid);
131 
132 public:
134 
156 nothing chown(string username);
157 
158 public:
160 
169  constructor(*string encoding);
170 
171 public:
173 
178  copy();
179 
180 public:
182 
204 int create(softint mode = 0777);
205 
206 public:
208 
216 bool exists();
217 
218 public:
220 
240 hash hstat();
241 
242 public:
244 
264 list list();
265 
266 public:
268 
293 list list(string regex, softint regex_options = 0);
294 
295 public:
297 
317 list listDirs();
318 
319 public:
321 
346 list listDirs(string regex, softint regex_options = 0);
347 
348 public:
350 
370 list listFiles();
371 
372 public:
374 
399 list listFiles(string regex, softint regex_options = 0);
400 
401 public:
403 
422 nothing mkdir(string subdir, softint mode = 0777);
423 
424 public:
426 
438 Dir openDir(string subdir, *string encoding);
439 
440 public:
442 
459 File openFile(string filename, int flags = O_RDONLY, int mode = 0666, *string encoding);
460 
461 public:
463 
472 *string path();
473 
474 public:
476 
498 bool removeFile(string file);
499 
500 public:
502 
520 nothing rmdir(string subdir);
521 
522 public:
524 
544 list stat();
545 
546 public:
548 
569 hash statvfs();
570 };
571 };