Difference between revisions of "ReNamer:Renaming folders"

From den4b Wiki
Jump to navigation Jump to search
Line 1: Line 1:
[[ReNamer]] has several [[ReNamer:Filter settings|filter options]] which configure how added items (files and folders) are treated. By default, folders are not added to the renaming list as items, instead, they are scanned for contained files and then files are added to the renaming list.
+
[[ReNamer]] has several [[ReNamer:Filter settings|filter options]] which configure how added items (files and folders) are treated.  
  
To be able to add folders as items for renaming, open [[ReNamer:Filter settings|filter settings]] and enable option "'''Add folders as files'''".
+
By default, folders are not added to the renaming list as items, instead, their contents are added to the renaming list. To rename the folders themselves, open [[ReNamer:Filter settings|filter settings]] and enable option "'''Add folders as files'''".
  
 
== Common problem ==
 
== Common problem ==
  
The process of renaming folders requires a little more attention as opposed to the process of renaming only files. Folders may require extra care because they are containers of items (other folders and files). Renaming a folder also affects all of its content.
+
Renaming a folder also affects all of its content. Therefore renaming of folders requires a little more care.
  
A problem can occur when users are trying to rename folders and their content in a single run. Items in the renaming list are processed from top to bottom, meaning that items at the top of the list will get renamed first and items at the bottom of the the list will get renamed last. The order of items in this case is extremely important for successful renaming.
+
A problem can occur if you try to rename folders and their content in a single run. Items in the renaming list are processed from top to bottom. The order of items in this case is extremely important for successful renaming.
  
'''Important:''' Parent folders must always appear below their contained items. This can be easily achieved by [[ReNamer:Sorting files|sorting items]] in descending order by Folder or Path column.
+
'''Important:''' Parent folders must always appear below their contained items. This can be easily achieved by [[ReNamer:Sorting files|sorting items]] in descending order by the '''Folder''' or '''Path''' column.
  
Otherwise, you might end up trying to rename the parent folder first and then contained files and subfolders which will fail to rename because their paths would be changed after renaming their parent folder. Example: If you have "C:\Folder" folder and inside "C:\Folder\File" file, and you rename "C:\Folder" first, then "C:\Folder\File" will fail to rename because it will not be found, its path would be changed by a first renaming operation.
+
If a parent folder is renamed first, the actual path for its contents changes instantly, with its new name. However, the subfolders and files contained in that folder are still listed in ReNamer with their old path. As a result, ReNamer is unable to find those items at the specified location, and therefore it cannot rename them.
 +
 
 +
For example, assume you have a folder named "C:\Folder" and a file named  "C:\Folder\File" in it.
 +
Assume also that you have listed '''Folder''' above '''File''' in ReNamer.
 +
As soon as first '''Folder''' is renamed to '''NewFolder''', the path for '''File''' changes to '''C:\NewFolder\'''. However, the File is still listed in ReNAmer at its original location (with the '''C:\Folder\''' path). Thus ReNamer is unable to find '''File'''.
 +
 
 +
In other words, while the contained folder is renamed, the contents are not.
  
 
== Problem occurred ==
 
== Problem occurred ==

Revision as of 03:56, 26 September 2010

ReNamer has several filter options which configure how added items (files and folders) are treated.

By default, folders are not added to the renaming list as items, instead, their contents are added to the renaming list. To rename the folders themselves, open filter settings and enable option "Add folders as files".

Common problem

Renaming a folder also affects all of its content. Therefore renaming of folders requires a little more care.

A problem can occur if you try to rename folders and their content in a single run. Items in the renaming list are processed from top to bottom. The order of items in this case is extremely important for successful renaming.

Important: Parent folders must always appear below their contained items. This can be easily achieved by sorting items in descending order by the Folder or Path column.

If a parent folder is renamed first, the actual path for its contents changes instantly, with its new name. However, the subfolders and files contained in that folder are still listed in ReNamer with their old path. As a result, ReNamer is unable to find those items at the specified location, and therefore it cannot rename them.

For example, assume you have a folder named "C:\Folder" and a file named "C:\Folder\File" in it. Assume also that you have listed Folder above File in ReNamer. As soon as first Folder is renamed to NewFolder, the path for File changes to C:\NewFolder\. However, the File is still listed in ReNAmer at its original location (with the C:\Folder\ path). Thus ReNamer is unable to find File.

In other words, while the contained folder is renamed, the contents are not.

Problem occurred

Preview Rename
ReNamer Folder Rename Bad Before.png ReNamer Folder Rename Bad After.png
Items as they appear after they were added, no sorting.

Problem solved

Preview Rename
ReNamer Folder Rename Good Before.png ReNamer Folder Rename Good After.png
Items after they were sorted in descending order by Folder column.