public bool ListFolder(string path, DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(path, m_Remote.ListFolder(path)); }); return(true); } DirectoryFile[] contents = new DirectoryFile[0]; // prevent pings while fetching remote FS data lock (m_Remote) { contents = m_Remote.ListFolder(path); } cb(path, contents); return(true); } return(false); }
public void ListFolder(string path, DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(path, m_Remote.ListFolder(path)); }); return; } cb(path, m_Remote.ListFolder(path)); } }
public void GetHomeFolder(DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(m_Remote.GetHomeFolder(), null); }); return; } cb(m_Remote.GetHomeFolder(), null); } }
public void GetHomeFolder(DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(m_Remote.GetHomeFolder(), null); }); return; } string home = ""; // prevent pings while fetching remote FS data lock (m_Remote) { home = m_Remote.GetHomeFolder(); } cb(home, null); } }
public bool ListFolder(string path, DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(path, m_Remote.ListFolder(path)); }); return true; } DirectoryFile[] contents = new DirectoryFile[0]; // prevent pings while fetching remote FS data lock(m_Remote) { contents = m_Remote.ListFolder(path); } cb(path, contents); return true; } return false; }
public void GetHomeFolder(DirectoryBrowseMethod cb) { if (m_Remote != null) { if (Running && m_Thread != Thread.CurrentThread) { BeginInvoke((ReplayRenderer r) => { cb(m_Remote.GetHomeFolder(), null); }); return; } string home = ""; // prevent pings while fetching remote FS data lock (m_Remote) { home = m_Remote.GetHomeFolder(); } cb(home, null); } }