I am trying to use file:copy:recursive to move files, I want to remove the original files, but I would like to keep the directories, what did I do wrong here, the documentation for this is really confusing to me.
it blew out my entire directory tree, I just want to move the files.
I guess I should have used fmove but I don't understand this doc at all.
can someone say this in english I don't get it, I read 3 or 4 times it doesn't make any sense all I get is blah blah blah.
This function uses File::Copy's copy() function to copy a file but not a directory. Any directories are recursively created if need be. One difference to File::Copy::copy() is that fcopy attempts to preserve the mode (see Preserving Mode below) The optional $buf in the synopsis if the same as File::Copy::copy()'s 3rd argument returns the same as File::Copy::copy() in scalar context and 1,0,0 in list context to accomidate rcopy()'s list context on regular files. (See below for more info)??
File::Copy::Recursive::dirmove $srcdir, $destdir or die "Copy failed:
print "done copying";