I am looking for a package or if there’s anything out there that is similar to the File.Rename node from the Orchid package but I need one for a Folder.Rename if there’s any?
I have tried several methods including moving the move file node and deleting the folders later.
Just haven’t had much success.
My python skills are pretty subpar at the moment so rebuilding one is going to take a long time. I can’t find any reference for the import os method.
this is my current work in progress.
# Load the Python Standard and DesignScript Libraries import sys import clr import os # The inputs to this node will be stored as a list in the IN variables. foldername = IN newfoldername = IN # Place your code below this line os.chdir(foldername) folders=os.listdir(foldername) for i in range (len(folders)): os.rename(folders[i], newfoldername) # Assign your output to the OUT variable. OUT = 0
Appreciate the help I can get for this from any legends here.