Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11885

Add support for creating folder by path in camel-box

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.3
    • Fix Version/s: 2.21.0
    • Component/s: camel-box
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Add possibility to specify folder by path as String[] when creating folders in Box, similarly to getFolder. It makes creation of nested folders in routes much easier.

      Note that createFolder(String, String[]) doesn't throw exception when folders exists unlike createFolder(String, String). This can be argued, but mimics the behaviour of, e.g., mkdir on Linux.

      {{
      $ mkdir foo
      $ mkdir foo
      mkdir: foo: File exists
      $ mkdir -p foo/bar
      $ mkdir -p foo/bar
      $
      }}

      Patch will follow.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              fjollberg Fredrik J├Ânsson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: