win32file.GetFullPathName

str/unicode = GetFullPathName(FileName, Transaction )

Returns full path for path passed in

Parameters

FileName : str/unicode

Path on which to operate

Transaction=None : PyHANDLE

Handle to a transaction as returned by win32transaction::CreateTransaction

Comments

This function takes either a plain string or a unicode string, and returns the same type If unicode is passed in, GetFullPathNameW is called, which supports filenames longer than MAX_PATH

If Transaction parameter is specified, GetFullPathNameTransacted is called (requires Vista or later)