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

YADE Client: source replacement functionality is broken for source directory subfolder files

    XMLWordPrintable

Details

    Description

      Current Situation

      • When YADE Client configured with recursive=true and source_replacement , the files in the source subdirectories are not correctly renamed.
      • YADE creates the replacement files of the subdirectories on the wrong location (source directory) with the wrong file names.
      • Example:
        • Folder structure:
          • C:\yade\test.txt
          • C:\yade\subfolder_1\test_subfolder_1.txt
          • C:\yade\subfolder_2\test_subfolder_2.txt
        • YADE configuration:
          • source_directory = C:\yade
          • recursive=true
          • source_replacing=test
          • source_replacement=xxx
          • ...
        • Folder structure after YADE execution:
          • C:\yade\xxx.txt
            • correctly renamed
          • C:\yade\subfolder_1$1
            • wrong file created
          • C:\yade\subfolder_2$1
            • wrong file created
          • C:\yade\subfolder_1
            • test_subfolder_1.txt file deleted
          • C:\yade\subfolder_2
            • test_subfolder_2.txt file deleted

      Desired behaviour

      • YADE Client should rename the source files correctly.
      • Desired folder structure after YADE execution for the example above:
        • C:\yade\xxx.txt
        • C:\yade\subfolder_1\xxx_subfolder_1.txt
        • C:\yade\subfolder_2\xxx_subfolder_2.txt

      Attachments

        Activity

          People

            re Robert Ehrlich
            re Robert Ehrlich
            Mahendra Patidar Mahendra Patidar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: