Exemplo n.º 1
0
 protected internal override FileSystemDirectory DoCreateDirectory(FileSystemDirectory dir, string name)
 {
     DropBoxObjectMetadata file = _fileStore.CreateDirectory(dir.Path, name, 5);
     DropBoxObjectHandler handler = new DropBoxObjectHandler(file);
     return new FileSystemDirectory(dir.Session, dir.Path, name, handler);
 }
Exemplo n.º 2
0
 protected internal override FileSystemFile DoCreateFile(FileSystemDirectory dir, string name, string localFile, bool readOnly)
 {
     DropBoxObjectMetadata file = _fileStore.CreateFile(CombinePaths(dir.Path, name), localFile, 5);
     DropBoxObjectHandler handler = new DropBoxObjectHandler(file);
     return new FileSystemFile(dir.Session, dir.Path, name, handler);
 }