We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d419dc3 commit be330a5Copy full SHA for be330a5
src/client.js
@@ -244,14 +244,11 @@ async function getDirectoryHandles(handle, name) {
244
245
async function getFileId(file) {
246
247
- if (file.id = file.path || file.webkitRelativePath) {
+ if (file.id = file.pathname) {
248
return file.id;
249
} else {
250
- const { name, size, type, lastModified } = file;
251
- const key = `${name}${size}${type}${lastModified}`;
252
-
253
- file.id = key
254
- return key;
+ file.id = `${file.name}${file.size}${file.type}${file.lastModified}`;
+ return file.id;
255
}
256
257
0 commit comments