Find/Replace in files deletes my files!
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 176
- Joined: Wed Apr 29, 2009 4:55 pm
Find/Replace in files deletes my files!
Hello,
I've found quite dangerous behaviour of Oxygen feature Find/Replace in Files.
Find/Replace in Files has the default setting, i.e. these options are checked:
I use Specified path to define the folder and enter a text to find and text for replacement. When I press the button Replace all, the results are following:
Jan
I've found quite dangerous behaviour of Oxygen feature Find/Replace in Files.
Find/Replace in Files has the default setting, i.e. these options are checked:
- Search also in tags
- Make backup files with extension BAK
- Recurse subdirectories
I use Specified path to define the folder and enter a text to find and text for replacement. When I press the button Replace all, the results are following:
- The original XML files in the defined folder are deleted.
- Only the backup BAK files stay there.
- No replacement is performed – as there are no XML files where it could be done.
- For the BAK files it only says: Could not rename the backup file to its original name. (Which does not make sense in this context.)
- All this is performed only on the first level in the folder, not recursively.
- It also tries to access the hidden folder .svn (even though the option Include hidden files is not checked).
Jan
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Find/Replace in files deletes my files!
Post by sorin_ristache »
Hello,
Regards,
Sorin
Do you mean a backup file with the extension .xml.bak is created in the same folder as the original .xml file but a file with the original file name does not exist anymore? I cannot reproduce that. What is the path of the folder from the field Specified path? Can you send us a zip archive with a folder and some subfolders with sample files and specify the find and replace expressions?honyk wrote:When I press the button Replace all, the results are following:
- The original XML files in the defined folder are deleted.
- Only the backup BAK files stay there.
- No replacement is performed – as there are no XML files where it could be done.
- For the BAK files it only says: Could not rename the backup file to its original name. (Which does not make sense in this context.)
- All this is performed only on the first level in the folder, not recursively.
The option Include hidden files covers the files and folders that have the hidden attribute set in the filesystem, not folder names that start with a dot.honyk wrote:[*]It also tries to access the hidden folder .svn (even though the option Include hidden files is not checked).[/list]
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service