We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As leo_file:file_get_mount_path/1 ( https://github.com/leo-project/leo_commons/blob/1.1.7/src/leo_file.erl#L110 ) doesn't follow every symlink included in a given path. A path given to that function should be canonicalized as readlink -f does.
leo_file:file_get_mount_path/1
readlink -f
The text was updated successfully, but these errors were encountered:
According to the report https://groups.google.com/d/msg/leoproject_leofs/4MFbLH9IVj4/MaqXsJHRAgAJ , There seems to be another issue. ( still not reproduced )
Sorry, something went wrong.
don't
os:cmd("readlink -f " ++ FilePath). %% doesn't work on possibly BSD based systems like OSX
instead
do port http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac into erlang with file:read_link_info, filename:basename and filename:dirname.
file:read_link_info
filename:basename
filename:dirname
leo-project/leo_commons@aaa39b9
leo-project/leo_commons@ae0dca5
Fix leo-project/leofs#508
5bb58f4
mocchira
No branches or pull requests
As
leo_file:file_get_mount_path/1
( https://github.com/leo-project/leo_commons/blob/1.1.7/src/leo_file.erl#L110 ) doesn't follow every symlink included in a given path.A path given to that function should be canonicalized as
readlink -f
does.The text was updated successfully, but these errors were encountered: