- match create_dir_all(&configuration.data_directory) {
- Ok(_) => {
- // We only care to show these warnings if this is the primary command.
- if command == self.command() {
- println!("WARNING: Sync Down Not yet implemented");
- }
- return Ok(())
- },
- Err(e) => Err(Error::new(e.kind(), format!("Could not create data directory")))
+ if command == self.command() {
+ return sync_down(&configuration.data_directory, &configuration.remote_config);