Subversion Repositories spk

Rev

Rev 129 | Rev 183 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 160
Line 16... Line 16...
16
	CDirIO ();
16
	CDirIO ();
17
	CDirIO ( CyString dir );
17
	CDirIO ( CyString dir );
18
	CDirIO ( CFileIO *file );
18
	CDirIO ( CFileIO *file );
19
	~CDirIO ();
19
	~CDirIO ();
20
 
20
 
21
	void SetDir(CyString dir);
21
	void setDir(const Utils::String& dir);
22
 
22
 
23
	// access functions
23
	// access functions
24
	bool exists() const;
24
	bool exists() const;
25
	bool exists(const Utils::String &dir) const;
25
	bool exists(const Utils::String &dir) const;
26
	bool isDir() const;
26
	bool isDir() const;
Line 29... Line 29...
29
	bool isFile(const Utils::String &dir) const;
29
	bool isFile(const Utils::String &dir) const;
30
 
30
 
31
	// directory handling
31
	// directory handling
32
	bool create() const;
32
	bool create() const;
33
	bool create(const Utils::String &dir) const;
33
	bool create(const Utils::String &dir) const;
34
	bool Create(CyString dir = NullString);
-
 
35
	bool CreateAndChange(CyString dir);
34
	bool createAndChange(const Utils::String &dir);
36
 
35
 
37
	bool move(const Utils::String &to);
36
	bool move(const Utils::String &to);
38
	bool Move(CyString from, CyString to);
37
	bool move(const Utils::String& from, const Utils::String& to);
39
	bool RemoveDir(CyString dir, bool doFiles = false, bool recursive = false, CyStringList *errors = NULL);
38
	bool RemoveDir(CyString dir, bool doFiles = false, bool recursive = false, CyStringList* errors = NULL);
-
 
39
	bool removeDir(const Utils::String &dir, bool doFiles = false, bool recursive = false, Utils::CStringList* errors = NULL);
40
	bool cd(const Utils::String &dir);
40
	bool cd(const Utils::String &dir);
41
 
41
 
42
	bool dirList(Utils::CStringList &files, Utils::String dir = Utils::String::Null(), Utils::String filePattern = Utils::String::Null()) const;
42
	bool dirList(Utils::CStringList &files, Utils::String dir = Utils::String::Null(), Utils::String filePattern = Utils::String::Null()) const;
43
	Utils::CStringList dirList(Utils::String dir = Utils::String::Null(), Utils::String filePattern = Utils::String::Null()) const;
-
 
44
	CyStringList *DirList(CyString dir = NullString, CyString filepattern = NullString);
-
 
45
	bool CheckEmptyDir(CyStringList *dirList);
43
	bool checkEmptyDir(const Utils::CStringList &dirList) const;
46
 
44
 
47
	CyString File(CyString filename);
-
 
48
	Utils::String file(const Utils::String &filename) const;
45
	Utils::String file(const Utils::String &filename) const;
49
	CyString Dir(CyString dir = NullString);
-
 
50
	Utils::String dir(const Utils::String &sDir) const;
46
	Utils::String dir(const Utils::String &sDir) const;
51
	const Utils::String &dir() const;
47
	const Utils::String &dir() const;
52
	Utils::String topDir() const;
48
	Utils::String topDir() const;
53
	const Utils::String &moveBack();
49
	const Utils::String &moveBack();
54
	Utils::String back() const;
50
	Utils::String back() const;