wood burning stoves 2.0*
The moose likes Java in General and the fly likes copying directories thru java code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "copying directories thru java code" Watch "copying directories thru java code" New topic
Author

copying directories thru java code

ganesh khandagar
Greenhorn

Joined: Jul 23, 2003
Posts: 6
i want to copy files from one directory to another. i tried recursive copying but it says access denied. how to get over this problem
thanx in advance and regards
ganesh
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Do you have security permissions to the target directory?


"JavaRanch, where the deer and the Certified play" - David O'Meara
ganesh khandagar
Greenhorn

Joined: Jul 23, 2003
Posts: 6
yeah i created the directory brand new.. also i tried with an existing dir that had all permissions
Karthikeyan Rajendraprasad
Ranch Hand

Joined: Apr 16, 2003
Posts: 70
The problem may be because of the target directory security. i think you will be creating those directory with the help of java code. first manually try to copy from one directory to another and check it then try it using the code.
[ August 05, 2003: Message edited by: Karthikeyan Rajendraprasad ]

Karthikeyan<br />SCJP 1.4, SCWCD.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: copying directories thru java code
 
Similar Threads
Trying to run simple JSP script
Shallow Copying and Deep Copying
Cloning
Understanding LinkedList
Array