Rename DirectoryFile/FileProperty to Path, and re-use struct in OS code

* They describe directories or files, and really describe a single path
  on the remote system.
This commit is contained in:
baldurk
2017-03-29 17:19:54 +01:00
parent 637d4089e2
commit 587fba0b68
9 changed files with 77 additions and 98 deletions
+3 -3
View File
@@ -108,7 +108,7 @@ void RenderManager::GetHomeFolder(bool synchronous, DirectoryBrowseMethod cb)
if(IsRunning() && m_Thread->isCurrentThread())
{
auto lambda = [cb, this](IReplayRenderer *r) {
cb(m_Remote->GetHomeFolder().c_str(), rdctype::array<DirectoryFile>());
cb(m_Remote->GetHomeFolder().c_str(), rdctype::array<PathEntry>());
};
if(synchronous)
@@ -125,7 +125,7 @@ void RenderManager::GetHomeFolder(bool synchronous, DirectoryBrowseMethod cb)
home = m_Remote->GetHomeFolder();
}
cb(home.c_str(), rdctype::array<DirectoryFile>());
cb(home.c_str(), rdctype::array<PathEntry>());
}
bool RenderManager::ListFolder(QString path, bool synchronous, DirectoryBrowseMethod cb)
@@ -148,7 +148,7 @@ bool RenderManager::ListFolder(QString path, bool synchronous, DirectoryBrowseMe
return true;
}
rdctype::array<DirectoryFile> contents;
rdctype::array<PathEntry> contents;
// prevent pings while fetching remote FS data
{