code: def _getResourceClass(self):
          
          if self.fromVirtualEnv:
              subcls = VirtualEnvResource
          elif os.path.isdir(self._resourcePath):
              subcls = DirectoryResource
          elif os.path.isfile(self._resourcePath):
              subcls = FileResource
          elif os.path.exists(self._resourcePath):
              raise AssertionError("Neither a file or a directory: '%s'" % self._resourcePath)
          else:
              raise AssertionError("No such file or directory: '%s'" % self._resourcePath)
          return subcls
docs: Return the concrete subclass of Resource that's appropriate for auto-deploying this module.