We have normpath() and readlink(), but how about realpath()? Seems like a good thing to have in the posixmodule. The man page for the C routine says: char *realpath (const char *file_name, char *resolved_name); DESCRIPTION realpath resolves all links, symbolic links, and references to ``.'' and ``..'' in file_name and stores it in resolved_name. It can handle both relative and absolute path names. For absolute path names and the relative names whose resolved name cannot be expressed relatively (for example, ../../reldir), it returns the resolved absolute name. resolved_name should point to a buffer (MAXPATHLEN) bytes in length to contain the fully resolved path name. -- ?!ng
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4