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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -