idealvin / gitalk

comments for Alvin's blog
0 stars 0 forks source link

File System | Documents for Coost #123

Open idealvin opened 1 year ago

idealvin commented 1 year ago

https://coostdocs.github.io/en/co/other/fs/

include: co/fs.h. The fs module implements common file system operations. It is recommended to use / uniformly as the path separator on different platforms.

Metadata operations #fs::exists bool exists(const char path); bool exists(const fastring& path); bool exists(const std::string& path); Check whether the file exists, the parameter path is the path of a file or directory. #fs::fsize int64 fsize(const char path); int64 fsize(const fastring& path); int64 fsize(const std::string& path); Get the file size.