1 #ifndef __DFTPD__FILESYSTEM_HPP__
2 #define __DFTPD__FILESYSTEM_HPP__
7 #include <boost/shared_ptr.hpp>
23 Filesystem( const std::string
& root
);
26 const std::string
& GetPath() const { return m_path
; }
27 bool ChangeDirectory( const std::string
& cd
);
29 bool FileExists( const std::string
& file
);
30 FILE* FileOpen( const std::string
& file
, Mode mode
);
33 RFile
* FileOpenSymbian( const std::string
& file
, Mode mode
);
36 std::list
<std::string
> GetListing( const std::string
& path
);
38 bool Delete( const std::string
& file
);
39 std::string
MkDir( const std::string
& dir
);
40 bool RmDir( const std::string
& dir
);
43 std::string
MakePath( const PathVector
& pv
);
44 bool DirectoryExists( const std::string
& dir
);
45 bool TryChangePath( const PathVector
& reqPath
, PathVector
& path
);
46 bool CheckFileExists( const std::string
& file
);
47 std::string
GetFilePath( const std::string
& path
);
48 PathVector
SplitProperPath( const std::string
& path
);
58 typedef boost::shared_ptr
<Filesystem
> FilesystemPtr
;