DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Re: Rename FOLDERS in hierarchy  (Read 8,182 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 563
Re: Rename FOLDERS in hierarchy
« on: February 17, 2023, 06:09 AM »
Vic and friends....  Please see the following.

https://www.donationcoder.com/forum/index.php?topic=53141.0

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Rename FOLDERS in hierarchy
« Reply #1 on: February 19, 2023, 09:14 PM »
Got it! Code is actively being added to GitHub repo @ https://github.com/publicdomain/rename-hierarchy

Stay tuned for first release :Thmbsup:

Cheers!
Vic

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Rename FOLDERS in hierarchy
« Reply #2 on: February 20, 2023, 12:25 AM »
The app is shaping along  :)

RenameHierarchy_ALPHA.png

Regarding your comment:

Problem could be that the larger folders have path length issues, greater than 255 characters.  Bummer.  If that's the case, probably Victor will run into the same, and come up short.

I can enable the application to use AlphaFS to handle long path names. No problem :Thmbsup:

https://github.com/alphaleonis/AlphaFS/
https://alphafs.alphaleonis.com

Quote
What does AlphaFS provide?
AlphaFS provides a namespace (Alphaleonis.Win32.Filesystem) containing a number of classes. Most notable are replications of the System.IO.File, System.IO.Directory and System.IO.Path, all with support for the extended-length paths (up to 32000 chars) [...]

Cheers!
« Last Edit: February 20, 2023, 03:46 AM by publicdomain »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Rename FOLDERS in hierarchy
« Reply #3 on: February 21, 2023, 03:07 AM »
Update:

  • Alphaleonis support added  :up:
  • Since the directory length is configurable, I'm taking care of some details such as offering the user an option to raise the name length automatically to fit the job. [Can be added to a further version if required/needed by users]
  • Also, making the algorithm sort generated random directory names to match original sorting by name.[Sorted naming hint is not needed as folders return to their exact original name 8)]
  • LiteDB support coming next for UNDO and we call it done & fit for release  :)
« Last Edit: February 23, 2023, 11:51 PM by publicdomain »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Rename FOLDERS in hierarchy
« Reply #4 on: February 23, 2023, 11:05 PM »
Hi Nick, your program is complete and I'm uploading it to Mouser's site & GitHub to make it an official release :)

RenameHierarchy_UNDO.png

... the shortcut to program can be renamed ...

BTW, this functionality is enabled via "Tools/Customize/Context menu item text".

RenameHierarchy_v0-1-0_context-menu-item-text.png
« Last Edit: February 24, 2023, 12:26 AM by publicdomain »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
« Last Edit: February 24, 2023, 01:14 PM by publicdomain »

Original address: https://www.donationcoder.com/forum/index.php?topic=53142.0