mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
VFS cleanup, some methods added
VFS::DeleteAll, VFS::GetDirSize, VFS::Exists, VFS::Rename (VFS::RenameFile, VFS::RenameDir removed)
This commit is contained in:
parent
db88c539fb
commit
e18db20630
16 changed files with 92 additions and 201 deletions
|
@ -38,26 +38,6 @@ bool vfsLocalDir::Open(const std::string& path)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool vfsLocalDir::Create(const std::string& path)
|
||||
{
|
||||
return fs::create_dir(path);
|
||||
}
|
||||
|
||||
bool vfsLocalDir::IsExists(const std::string& path) const
|
||||
{
|
||||
return fs::is_dir(path);
|
||||
}
|
||||
|
||||
bool vfsLocalDir::Rename(const std::string& from, const std::string& to)
|
||||
{
|
||||
return fs::rename(from, to);
|
||||
}
|
||||
|
||||
bool vfsLocalDir::Remove(const std::string& path)
|
||||
{
|
||||
return fs::remove_dir(path);
|
||||
}
|
||||
|
||||
bool vfsLocalDir::IsOpened() const
|
||||
{
|
||||
return m_dir && vfsDirBase::IsOpened();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue