nsFileSpec is dead.

However, as you note, writting a recursive copy is trival with nsILocalFile.  Take a look at the profile migration code and/or xpinstall.  I believe that the code has already been written.  Maybe we should promote this function to nsIFile. However, I am not convinced yet.
 

Navin Gupta wrote:

The existing API nsFileSpec::MoveToDir(nsFileSpec) does not allow copy
of entire directories from one location to another. It allows only file
copy.

Does anyone know of other API that allows the above. I know the work
around is just writing a recursive function.

Reply via email to