code: def compile_path(self, path, write=True, package=None, *args, **kwargs):
          
          path = fixpath(path)
          if not isinstance(write, bool):
              write = fixpath(write)
          if os.path.isfile(path):
              if package is None:
                  package = False
              destpath = self.compile_file(path, write, package, *args, **kwargs)
              return [destpath] if destpath is not None else []
          elif os.path.isdir(path):
              if package is None:
                  package = True
              return self.compile_folder(path, write, package, *args, **kwargs)
          else:
              raise CoconutException("could not find source path", path)
docs: Compile a path and returns paths to compiled files.