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