Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1819 5.0.3 Python API Improvements
  3. PM-1756

paths with spaces need to be escaped

XMLWordPrintable

      When paths are given in the api, they should be escaped if necessary.

      For example:
      props = Properties()
      props["pegasus.catalog.replica.file"] = str(TOP_DIR / "replicas.yml")
      props.write()

      would cause a planner error if the path given was "/path/Untitled Directory/replicas.yml"

      Possible solution:
      import shlex
      shlex.quote( "a b" )

            Assignee:
            mayani Rajiv Mayani
            Reporter:
            tanaka Ryan Tanaka (Inactive)
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: