public byte[] GetData() { string ummaskedPath = RemoteFolder.UnmaskPath(_folder.Path); string fullname = ummaskedPath + "\\" + _name; byte[] data = null; using (FileStream fs = File.OpenRead(fullname)) { data = new byte[fs.Length]; fs.Read(data, 0, (int)fs.Length); } return(data); }
public static RemoteFolder GetRootFolder() { RemoteFolder root = new RemoteFolder(_rootDrive); return(root); }
public RemoteFile(string Name, RemoteFolder Folder) { _name = Name; _folder = Folder; }