From 7b06070a6c6756f77ccd7702459ac751eb5b6200 Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Wed, 5 Mar 2025 13:29:14 +0100
Subject: [PATCH] Fixed issue in listing hidden files in the file manager
 (disabled).

---
 services/webapp/code/rosetta/core_app/api.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/services/webapp/code/rosetta/core_app/api.py b/services/webapp/code/rosetta/core_app/api.py
index edb9e8d..f814e05 100644
--- a/services/webapp/code/rosetta/core_app/api.py
+++ b/services/webapp/code/rosetta/core_app/api.py
@@ -565,7 +565,9 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
             # https://askubuntu.com/questions/1116634/ls-command-show-time-only-in-iso-format
             # https://www.howtogeek.com/451022/how-to-use-the-stat-command-on-linux/
 
-            command = self.prepare_sh_command('cd {} && stat --printf=\'%F/%s/%Y/%n\\n\' * .*'.format(shell_path), user, storage)
+            # This potentially raises a "stat: cannot statx '.*': No such file or directory"
+            #command = self.prepare_sh_command('cd {} && stat --printf=\'%F/%s/%Y/%n\\n\' * .*'.format(shell_path), user, storage)
+            command = self.prepare_sh_command('cd {} && stat --printf=\'%F/%s/%Y/%n\\n\' *'.format(shell_path), user, storage)
 
             # Execute_command
             out = os_shell(command, capture=True)
-- 
GitLab