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

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

php - Redirect and hide target URL -