I’m looking to rename a directory as i copy it from one location to another. Have searched its easy for files but not directories i guess?
any help is with out a doubt very appreciated.
Directory.Copy+ from BattleBIM copies the contents of a directory to a new location, so you would just specify the new directory name.
@jschnare I think that’s what you want.
import sys pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib' sys.path.append(pyt_path) import os path = IN try: os.mkdir(path) OUT= path except: OUT= path
thank you gentlemen, greatly appreciated.