async fn sync_directory( location: PathBuf, remote_path: String, project: &str, database: &AnyDatabase<CliBackend>) -> Result<()>