Skip to content

Commit 8650f9c

Browse files
committed
Update code
1 parent d40035d commit 8650f9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/services/dropbox/backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Accessor for DropboxBackend {
9696
if path == "/" {
9797
return Ok(RpStat::new(Metadata::new(EntryMode::DIR)));
9898
}
99-
let resp = self.core.dropbox_get_stat(path).await?;
99+
let resp = self.core.dropbox_get_metadata(path).await?;
100100
let status = resp.status();
101101
match status {
102102
StatusCode::OK => {

core/src/services/dropbox/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl DropboxCore {
111111
self.client.send(request).await
112112
}
113113

114-
pub async fn dropbox_get_stat(&self, path: &str) -> Result<Response<IncomingAsyncBody>> {
114+
pub async fn dropbox_get_metadata(&self, path: &str) -> Result<Response<IncomingAsyncBody>> {
115115
let url = "https://api.dropboxapi.com/2/files/get_metadata".to_string();
116116
let args = DropboxMetadataArgs {
117117
path: build_rooted_abs_path(&self.root, path),

0 commit comments

Comments
 (0)