Skip to content

Commit

Permalink
Merge branch 'interface' of github.com:finitum/dspfs into interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Roest committed Aug 3, 2020
1 parent d5e996d commit 796e48b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dspfs/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub trait Api {

// TODO:
async fn add_folder(&self, guuid: Uuid, path: &Path) -> Result<()> {
assert!(path.is_dir());
todo!()
}
}
Expand Down
3 changes: 3 additions & 0 deletions src/fs/group/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ pub trait GroupStore: Send + Sync {
/// Gets a specific file given a filehash
fn get_file(&self, hash: Hash) -> Result<Option<File>>;

/// Gets the list of all files
fn list_files(&self) -> Result<Vec<File>>;

/// Gets the file tree of a specific user
fn get_filetree(&self, user: &PublicUser) -> Result<FileTree>;

/// Changes a user's file from old to new.
Expand Down

0 comments on commit 796e48b

Please sign in to comment.