Skip to content

Dont use hardcoded paths

Josef Schlehofer requested to merge dontuse_hardcoded_paths into master

When I open Storage tab in Foris, I received this error: Remote Exception: Internal error Retval=2(No such file or directory: '/usr/bin/stat') for ['/usr/bin/stat', '-c', '%m', '/srv']('<class 'foris_controller.exceptions.BackendCommandFailed'>')

Indeed I found that I don't have /usr/bin/stat, but I have it in /bin/stat. Also, it will be good if the hard coded path is somewhere where you can edit it locally instead of recompiling the necessary package, because .pyc files are not easily editable.

Merge request reports