java - Move all files and folders from one directory to another -


I am working on a project and whatever needs to be done, move files and directories generated by a python Is doing a script that calls the program to another directory.

I now have a code that copies files properly, but does not copy the directory.

Does anyone know this? My current code is included.

  file baseDir = new file (System.getProperty ("user.dir")); File destDir = new file ("% userprofile% \ docs"); File [] files = baseDir.listFiles (); For (int i = 0; i    

better use All the necessary tasks are to solve the problem.

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -