11import { AuthVerify } from "../auth" ;
22import type FileSystem from "../filesystem" ;
3- import type { File , FileReader , FileWriter } from "../filesystem" ;
3+ import type { FileInfo , FileReader , FileWriter } from "../filesystem" ;
44import { joinPath } from "../utils" ;
55import { DropboxFileReader , DropboxFileWriter } from "./rw" ;
66
@@ -24,7 +24,7 @@ export default class DropboxFileSystem implements FileSystem {
2424 return this . list ( ) . then ( ) ;
2525 }
2626
27- open ( file : File ) : Promise < FileReader > {
27+ open ( file : FileInfo ) : Promise < FileReader > {
2828 return Promise . resolve ( new DropboxFileReader ( this , file ) ) ;
2929 }
3030
@@ -138,7 +138,7 @@ export default class DropboxFileSystem implements FileSystem {
138138 this . clearRelatedCache ( fullPath ) ;
139139 }
140140
141- async list ( ) : Promise < File [ ] > {
141+ async list ( ) : Promise < FileInfo [ ] > {
142142 let folderPath = this . path ;
143143
144144 // Dropbox API 需要空字符串来表示根目录
@@ -162,7 +162,7 @@ export default class DropboxFileSystem implements FileSystem {
162162 throw e ;
163163 } ) ;
164164
165- const list : File [ ] = [ ] ;
165+ const list : FileInfo [ ] = [ ] ;
166166
167167 const MAX_ITERATIONS = 100 ;
168168 let iterationCount = 0 ;
0 commit comments