Code Comments
Programming Forum and web based access to our favorite programming groups.Hello there, I have a tricky problem, I have some (alot) directories containing alot of files. I want to move the directory /xyz/123/ with all containing files to /xyz/abc/123. The source directory does not (or should not) contain subdirectories. Does anybody have something for me ? Thanks, Bastian
Post Follow-up to this messageBastian Angerstein wrote: > Hello there, > > I have a tricky problem, I have some (alot) directories containing > alot of files. I want to move the directory /xyz/123/ with all containing > files to /xyz/abc/123. > > The source directory does not (or should not) contain subdirectories. > > Does anybody have something for me ? > > Thanks, > Bastian > > perldoc -f mkdir perldoc -f rename perldoc File::Path perldoc File::Copy What have you tried, where did you fail? http://danconia.org
Post Follow-up to this messageOn Thu, 24 Feb 2005, Bastian Angerstein wrote: > I have a tricky problem, I have some (alot) directories containing > alot of files. I want to move the directory /xyz/123/ with all > containing files to /xyz/abc/123. Maybe I'm being dense, but doesn't that just mean mkdir /xyz/abc mv /xyz/123 /xyz/abc/123 ? It shouldn't matter how full 123 is; moving it is a simple operation. If you're trying to do something more complex that I'm missing, maybe you should describe the problem a bit more, and show us the code that you've been attempting to use. -- Chris Devers
Post Follow-up to this message> perldoc -f mkdir > perldoc -f rename > perldoc File::Path > perldoc File::Copy Also see, File::Copy::Recursive :) quite nice and simple. HTH :) Lee.M - JupiterHost.Net
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.