Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Moving Directories containing files (something more tricky)
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


Report this thread to moderator Post Follow-up to this message
Old Post
Bastian Angerstein
02-24-05 08:56 PM


Re: Moving Directories containing files (something more tricky)
Bastian 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

Report this thread to moderator Post Follow-up to this message
Old Post
Wiggins d'Anconia
02-24-05 08:56 PM


Re: Moving Directories containing files (something more tricky)
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Devers
02-24-05 08:56 PM


Re: Moving Directories containing files (something more tricky)

> 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

Report this thread to moderator Post Follow-up to this message
Old Post
JupiterHost.Net
02-24-05 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.