diff options
author | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:23:46 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:52:09 +0800 |
commit | 94f8330613877b3582d32bd11abd83a97b4399ad (patch) | |
tree | 5359de314be1ebde17f8d1e48632a97d18f9e50f /src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp | |
parent | 60f8f00a022ac08701792b2897b72d8c99b50f52 (diff) | |
download | yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.gz yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.bz2 yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.zip |
adding -w option to Yuescript tool.
Diffstat (limited to 'src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp')
-rwxr-xr-x | src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp b/src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp new file mode 100755 index 0000000..0bfba76 --- /dev/null +++ b/src/3rdParty/efsw/platform/posix/FileSystemImpl.hpp | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef EFSW_FILESYSTEMIMPLPOSIX_HPP | ||
2 | #define EFSW_FILESYSTEMIMPLPOSIX_HPP | ||
3 | |||
4 | #include <efsw/FileInfo.hpp> | ||
5 | #include <efsw/base.hpp> | ||
6 | |||
7 | #if defined( EFSW_PLATFORM_POSIX ) | ||
8 | |||
9 | namespace efsw { namespace Platform { | ||
10 | |||
11 | class FileSystem { | ||
12 | public: | ||
13 | static FileInfoMap filesInfoFromPath( const std::string& path ); | ||
14 | |||
15 | static char getOSSlash(); | ||
16 | |||
17 | static bool isDirectory( const std::string& path ); | ||
18 | |||
19 | static bool isRemoteFS( const std::string& directory ); | ||
20 | |||
21 | static bool changeWorkingDirectory( const std::string& path ); | ||
22 | |||
23 | static std::string getCurrentWorkingDirectory(); | ||
24 | }; | ||
25 | |||
26 | }} // namespace efsw::Platform | ||
27 | |||
28 | #endif | ||
29 | |||
30 | #endif | ||