Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.9.6, 1.10, 1.11
-
None
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
- C:\yade\xxx.txt
- Folder structure:
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