mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
refactor: use getVolumePath helper
This commit is contained in:
@@ -118,7 +118,7 @@ const getVolume = async (name: string) => {
|
||||
|
||||
let statfs: Partial<StatFs> = {};
|
||||
if (volume.status === "mounted") {
|
||||
statfs = await getStatFs(`${VOLUME_MOUNT_BASE}/${name}/_data`).catch(() => ({}));
|
||||
statfs = await getStatFs(getVolumePath(name)).catch(() => ({}));
|
||||
}
|
||||
|
||||
return { volume, statfs };
|
||||
|
||||
Reference in New Issue
Block a user