Return a normalized absolute version of a file name.
If a string containing URL is provided then it is returned unchanged.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> cf.abspath('file.nc')
'/data/archive/file.nc'
>>> cf.abspath('..//archive///file.nc')
'/data/archive/file.nc'
>>> cf.abspath('http://data/archive/file.nc')
'http://data/archive/file.nc'