def file_or_folder(path):
        """
        Returns a File or Folder object that would represent the given path.
        """
        target = unicode(path)
        return Folder(target) if os.path.isdir(target) else File(target)
def file_or_folder ( path ) : target = unicode ( path ) return Folder ( target ) if os . path . isdir ( target ) else File ( target )
Returns a File or Folder object that would represent the given path.