Module realpath

.

Copyright © (C) 2020, Martin Keegan

Authors: Martin Keegan (martin@no.ucant.org).

Description

Function Index

canonicalise/1 Return a canonicalised pathname, having resolved symlinks to their destination.
normalise/1 Return a path where the use of ".." to indicate parent directory has been resolved.

Function Details

canonicalise/1

canonicalise(Path::string()) -> {ok, string()} | {error, atom()}

Return a canonicalised pathname, having resolved symlinks to their destination. Modelled on realpath(3).

normalise/1

normalise(S::list()) -> {ok, string()} | {error, atom()}

Return a path where the use of ".." to indicate parent directory has been resolved. Currently does not accept relative paths.


Generated by EDoc