mobiletto-base
Advanced tools
Comparing version 2.0.16 to 2.0.17
@@ -61,2 +61,14 @@ "use strict"; | ||
const results = yield client.driver_list(path, recursive, visitor); | ||
if (results.length === 0) { | ||
// try single meta, is this a file? | ||
try { | ||
const singleFileMeta = yield client.driver_metadata(path); | ||
if (singleFileMeta) { | ||
results.push(singleFileMeta); | ||
} | ||
} | ||
catch (sfmErrIgnored) { | ||
// ignore error, we tried | ||
} | ||
} | ||
if (cache) { | ||
@@ -63,0 +75,0 @@ cache.set(path, results).then(() => { |
@@ -55,2 +55,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const results = yield client.driver_list(path, recursive, visitor); | ||
if (results.length === 0) { | ||
// try single meta, is this a file? | ||
try { | ||
const singleFileMeta = yield client.driver_metadata(path); | ||
if (singleFileMeta) { | ||
results.push(singleFileMeta); | ||
} | ||
} | ||
catch (sfmErrIgnored) { | ||
// ignore error, we tried | ||
} | ||
} | ||
if (cache) { | ||
@@ -57,0 +69,0 @@ cache.set(path, results).then(() => { |
{ | ||
"name": "mobiletto-base", | ||
"version": "2.0.16", | ||
"version": "2.0.17", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A storage layer that presents a uniform interface to Amazon S3, Backblaze B2, local and other storage systems.", |
153283
2878