Skip to content

Commit f642d7b

Browse files
committed
Rename localPath to path so prevent confusion
1 parent 53054cc commit f642d7b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/drive.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,24 @@ export class FileSystemDrive implements Contents.IDrive {
151151
}
152152
}
153153

154-
getDownloadUrl(localPath: string): Promise<string> {
154+
getDownloadUrl(path: string): Promise<string> {
155155
throw new Error('Method not implemented.');
156156
}
157157

158158
newUntitled(options?: Contents.ICreateOptions): Promise<Contents.IModel> {
159159
throw new Error('Method not implemented.');
160160
}
161161

162-
delete(localPath: string): Promise<void> {
162+
delete(path: string): Promise<void> {
163163
throw new Error('Method not implemented.');
164164
}
165165

166-
rename(oldLocalPath: string, newLocalPath: string): Promise<Contents.IModel> {
166+
rename(oldPath: string, newPath: string): Promise<Contents.IModel> {
167167
throw new Error('Method not implemented.');
168168
}
169169

170170
async save(
171-
localPath: string,
171+
path: string,
172172
options?: Partial<Contents.IModel>
173173
): Promise<Contents.IModel> {
174174
const root = this._rootHandle;
@@ -177,7 +177,7 @@ export class FileSystemDrive implements Contents.IDrive {
177177
throw new Error('No root file handle');
178178
}
179179

180-
const handle = await root.getFileHandle(localPath);
180+
const handle = await root.getFileHandle(path);
181181
const writable = await handle.createWritable({});
182182

183183
const format = options?.format;
@@ -189,15 +189,15 @@ export class FileSystemDrive implements Contents.IDrive {
189189
await writable.write(content);
190190
}
191191
await writable.close();
192-
return this.get(localPath);
192+
return this.get(path);
193193
}
194194

195-
copy(localPath: string, toLocalDir: string): Promise<Contents.IModel> {
195+
copy(path: string, toLocalDir: string): Promise<Contents.IModel> {
196196
throw new Error('Method not implemented.');
197197
}
198198

199199
async createCheckpoint(
200-
localPath: string
200+
path: string
201201
): Promise<Contents.ICheckpointModel> {
202202
return {
203203
id: 'test',
@@ -206,7 +206,7 @@ export class FileSystemDrive implements Contents.IDrive {
206206
}
207207

208208
async listCheckpoints(
209-
localPath: string
209+
path: string
210210
): Promise<Contents.ICheckpointModel[]> {
211211
return [
212212
{
@@ -216,11 +216,11 @@ export class FileSystemDrive implements Contents.IDrive {
216216
];
217217
}
218218

219-
restoreCheckpoint(localPath: string, checkpointID: string): Promise<void> {
219+
restoreCheckpoint(path: string, checkpointID: string): Promise<void> {
220220
return Promise.resolve(void 0);
221221
}
222222

223-
deleteCheckpoint(localPath: string, checkpointID: string): Promise<void> {
223+
deleteCheckpoint(path: string, checkpointID: string): Promise<void> {
224224
return Promise.resolve(void 0);
225225
}
226226

0 commit comments

Comments
 (0)