File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class GitHubFileSystem extends FileSystemBase {
5151 return await gh_user_content . get ( download_url ) ;
5252 }
5353
54- override async enumrate ( cur_dir : string ) : Promise < FileEntry [ ] > {
54+ override async enumerate ( cur_dir : string ) : Promise < FileEntry [ ] > {
5555 if ( this . single_file ) {
5656 // single file, return all files directly
5757 return Array . from ( this . download_urls . keys ( ) ) . map ( ( v ) => ( {
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export abstract class FileSystemBase implements IFileSystem {
131131 return ;
132132 }
133133
134- const entries = await this . enumrate ( dir ) ;
134+ const entries = await this . enumerate ( dir ) ;
135135 this . entries . set ( dir , { path : dir , type : "visited-directory" } ) ;
136136
137137 for ( const it of entries ) {
@@ -150,7 +150,7 @@ export abstract class FileSystemBase implements IFileSystem {
150150 /**
151151 * Enumerate files at `base_dir`. (default: empty)
152152 */
153- protected abstract enumrate ( base_dir : string ) : Promise < FileEntry [ ] > ;
153+ protected abstract enumerate ( base_dir : string ) : Promise < FileEntry [ ] > ;
154154}
155155
156156/**
@@ -224,7 +224,7 @@ export class LocalFileSystemBase extends FileSystemBase {
224224 return file ;
225225 }
226226
227- async enumrate ( base_dir : string ) : Promise < FileEntry [ ] > {
227+ async enumerate ( base_dir : string ) : Promise < FileEntry [ ] > {
228228 // All files are already provided by the constructor.
229229 return [ ] ;
230230 }
@@ -301,7 +301,7 @@ export class FetchFileSystem extends FileSystemBase {
301301 return new File ( [ blob ] , path ) ;
302302 }
303303
304- async enumrate ( base_dir : string ) : Promise < FileEntry [ ] > {
304+ async enumerate ( base_dir : string ) : Promise < FileEntry [ ] > {
305305 return Array . from ( this . urls . keys ( ) ) . map ( ( path ) => ( {
306306 path,
307307 type : "file" ,
You can’t perform that action at this time.
0 commit comments