Get file path from file object