Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: I FEEL SO DIRTY! Sorting files into folders.

by Tardis (Pilgrim)
on Mar 06, 2002 at 09:44 UTC ( [id://149645]=note: print w/replies, xml ) Need Help??


in reply to I FEEL SO DIRTY! Sorting files into folders.

This works quite well.

I didn't have any files named like that (!) so I tested it against the results of Swimsuit issue, and it did the job quite nicely.

It needs some tidying up. The mkdir calls require a mask on unix type systems. A check of the OS at runtime could fill that in and make it more portable.

It's a bit too verbose. My general feel is that output should be minimal for a script whos job is not the output (in this case the job is to move some files around). Then problems are then easily seen in the program output, rather than being lost in the other information.

  • Comment on Re: I FEEL SO DIRTY! Sorting files into folders.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149645]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found