c# - Why doesn't DirectoryInfo have a Copy() method? -


directoryinfo has moveto method, no copy method.

if pressed omit 1 or other (perhaps going around saying 'too many methods!'), have moveto. users of class still able achieve same effect calling copy , delete(true) (true here indicating delete contents recursively).

by comparison, it's more involved implement copy procedure existing methods.

can explain this?

see "access denied" when using copyfile function, however, "movefile" working fine on same directories

the winapi not have native call copy directories. need transverse directory , copy structure manually. there multiple ways depending upon time complexity characteristics want.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -