Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-236

mkdir in SFTP should create a directory only if it does not exist

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.7.5, 1.8.2, 1.9
    • None
    • None

    Description

      • Problem
        • mkdir in SFTP tries to create a directory even though it exists because the SFTP client gets no information about whether the directory exists.
          • For a path like /a/b/c it asks at first for the attributes (isDirectory) of /a then of /a/b and so on.
          • This is the wrong order. Based on the permissions settings it is possible that the attributes of /a are not readable. Then it seems that /a is not a directory and the mkdir command fails.
      • Solution
        • JADE should ask at first the attributes in the reverse order, i.e. /a/b/c, then /a/b and so on until a subpath is a directory.
        • Then JADE should create the directories in the original order, i.e. /a, /a/b, /a/b/c

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d