This commit is contained in:
joshuaboud 2022-05-30 13:45:03 -03:00
parent e37d5b048d
commit 2caf61887f
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -14,7 +14,7 @@ import { useSpawn, errorString } from "@45drives/cockpit-helpers";
* @param {getDirListingFailCallback} failCallback - Callback function for handling errors, receives {String} message
* @returns {Promise<String[]>}
*/
async function getDirListing(path, failCallback) {
async function getDirListing(path, host, failCallback) {
return parseRawDirListing(
(
await useSpawn([
@ -24,7 +24,7 @@ async function getDirListing(path, failCallback) {
'--quoting-style=c',
'-1',
path
], { superuser: 'try' }).promise()
], { superuser: 'try', host }).promise()
).stdout,
failCallback
);