fix: do not expose the name of the root directory

pull/5224/head
Henrique Dias 2025-06-28 08:35:16 +02:00
parent 0474e40877
commit 20e2a27bb0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ func NewFileInfo(opts *FileOptions) (*FileInfo, error) {
// Do not expose the name of root directory.
if file.Path == "/" {
file.Name = "/"
file.Name = ""
}
if opts.Expand {

View File

@ -150,7 +150,7 @@ const fetchData = async () => {
}
fileStore.updateRequest(res);
document.title = `${res.name} - ${t("files.files")} - ${name}`;
document.title = `${res.name || t("sidebar.myFiles")} - ${t("files.files")} - ${name}`;
} catch (err) {
if (err instanceof Error) {
error.value = err;