Warning users when files exist in mount location. Users may have accidentally downloaded files into the media directory, we want to warn them.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

This commit is contained in:
Roland 2026-05-14 16:38:02 -06:00
parent da340a00b3
commit cd8792f697
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
12 changed files with 482 additions and 34 deletions

View file

@ -180,10 +180,17 @@ export async function getMounts() {
return controllerFetch('/disks/mounts');
}
export async function mountDisk(device, mountPoint, fstype = null, options = 'defaults', persist = false) {
export async function mountDisk(device, mountPoint, fstype = null, options = 'defaults', persist = false, forceShadowed = false) {
return controllerFetch('/disks/mount', {
method: 'POST',
body: JSON.stringify({device, mount_point: mountPoint, fstype, options, persist}),
body: JSON.stringify({
device,
mount_point: mountPoint,
fstype,
options,
persist,
force_shadowed: forceShadowed,
}),
});
}