Get file path and name from file handle