hi,
I'm having trouble figuring out exactly how to solve the following problem:
I have an xml document "doc1.xml" that needs to be renamed and then moved to a new folder directory ("dir0/dir1/dir2/newname.xml").
The details for renaming the file and the folder creation are all contained in various xml nodes in the file itself. Can someone help me understand how I can open a file, use it's contents to create a new folder, then rename the file i've opened and place it in this new directory.
I've been able to create the new directories just fine, but I can't seem to figure out how to move the file. I'm a bit new to python but I'm almost certain this is a task that can easily be accomplished.
Thanks
I'm having trouble figuring out exactly how to solve the following problem:
I have an xml document "doc1.xml" that needs to be renamed and then moved to a new folder directory ("dir0/dir1/dir2/newname.xml").
The details for renaming the file and the folder creation are all contained in various xml nodes in the file itself. Can someone help me understand how I can open a file, use it's contents to create a new folder, then rename the file i've opened and place it in this new directory.
I've been able to create the new directories just fine, but I can't seem to figure out how to move the file. I'm a bit new to python but I'm almost certain this is a task that can easily be accomplished.
Thanks
Comment