mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
8 lines
291 B
Python
8 lines
291 B
Python
def realpath(path):
|
|
'''
|
|
Returns the true, canonical file system path equivalent to the given
|
|
path.
|
|
'''
|
|
# TODO: There may be a more clever way to do this that also handles other,
|
|
# less common file systems.
|
|
return os.path.normpath(normcase(os.path.realpath(path))) |