Exclude a specific folder when loading a folder
Hello
I didn' find a way, when I load a folder, to exclude the sub folder named "00 to be excluded".
I've tried regular expressions in the loading window, but without success.
Thank you for your help
Villard
I didn' find a way, when I load a folder, to exclude the sub folder named "00 to be excluded".
I've tried regular expressions in the loading window, but without success.
Thank you for your help
Villard
Reply to #1:
Are you renaming the folders or the files in the folders?
If just ***the folders***, then:
1) Add all the desired folders and subfolders to ARen, not worrying about exclude yet.
2) Once the folders are added:
. A) Right-click on the folder list and select "Remove special" --> "Remove by pattern..."
. B) For the pattern, use "excluded" or whatever is appropriate.
. C) Click Okay and the matching folders will be removed.
If you (expect to) do this a lot, use a javascript method instead to ignore the offending folders. Or use Python, PowerShell, etc., to collect just what you want and feed it to Aren's command-line.
If ***the files*** within the folders, then you will probably have to use JavaScript. let us know here if that is the case.
Are you renaming the folders or the files in the folders?
If just ***the folders***, then:
1) Add all the desired folders and subfolders to ARen, not worrying about exclude yet.
2) Once the folders are added:
. A) Right-click on the folder list and select "Remove special" --> "Remove by pattern..."
. B) For the pattern, use "excluded" or whatever is appropriate.
. C) Click Okay and the matching folders will be removed.
If you (expect to) do this a lot, use a javascript method instead to ignore the offending folders. Or use Python, PowerShell, etc., to collect just what you want and feed it to Aren's command-line.
If ***the files*** within the folders, then you will probably have to use JavaScript. let us know here if that is the case.
Reply to #1:
Hi Villard,
Actually it's really easy to do what you want, for files or folders. Here's the drill:
1. Just set up your method list as you want. You can do anything to the files or folders. The "excluded" files/folders will show as changed in the "New Filename" column.
2. At the end of the method list insert a New Name method that replaces the new filenames with <Name> IF they match a keyword in the folder name (like "excluded" in your case).
End New Name method:
Name: <Name>
{if}
Field: Path (for files) or Name (for folders)
Match: Contains
Pattern: excluded
You can *probably" use Field "Path and name" instead, and have the method batch work on either files or folders, but I can't guarantee that will work in all cases. For instance, if your batch removes the keyword at some point.
Best,
DF
Hi Villard,
Actually it's really easy to do what you want, for files or folders. Here's the drill:
1. Just set up your method list as you want. You can do anything to the files or folders. The "excluded" files/folders will show as changed in the "New Filename" column.
2. At the end of the method list insert a New Name method that replaces the new filenames with <Name> IF they match a keyword in the folder name (like "excluded" in your case).
End New Name method:
Name: <Name>
{if}
Field: Path (for files) or Name (for folders)
Match: Contains
Pattern: excluded
You can *probably" use Field "Path and name" instead, and have the method batch work on either files or folders, but I can't guarantee that will work in all cases. For instance, if your batch removes the keyword at some point.
Best,
DF