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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -