feat(chrome native fs): add sync button

This commit is contained in:
Tienson Qin
2020-12-01 00:30:00 +08:00
parent fccbcdd719
commit 0b90dcf71b
4 changed files with 104 additions and 27 deletions

View File

@@ -76,7 +76,7 @@ export var getSelectionText = function() {
// Modified from https://github.com/GoogleChromeLabs/browser-nativefs
// because shadow-cljs doesn't handle this babel transform
const getFiles = async function (dirHandle, recursive, cb, path = dirHandle.name) {
export var getFiles = async function (dirHandle, recursive, cb, path = dirHandle.name) {
const dirs = [];
const files = [];
for await (const entry of dirHandle.values()) {