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

Add support for creating folder by path in camel-box

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.3
    • 2.21.0
    • camel-box
    • None
    • 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

            davsclaus Claus Ibsen
            fjollberg Fredrik Jönsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: