Do you know where your variables are? | |
PerlMonks |
checking to see if a directory is emptyby drum1981 (Novice) |
on Jul 27, 2005 at 18:16 UTC ( [id://478691]=perlquestion: print w/replies, xml ) | Need Help?? |
drum1981 has asked for the wisdom of the Perl Monks concerning the following question:
hi everyone. i am working with a script whose duties are to transfer some subdirectories from one location to another, along with the respective contents. the problem i have come across is that random files were left behind of various extentions( maybe .dll's, .kex's, and .sea's to just name a couple. mostly they are random extensions that i have never heard of). can anybody suggest an efficient way to after moving the contents of a subdirectory, to make sure that it has fully moved all the contents. right now after the script finishes, it says everything has moved even though there are still these random files. so basically, can anyone suggest something that makes sure a subdirectory is empty, and if not, moves whatever is there?
-thanks
Back to
Seekers of Perl Wisdom
|
|