jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "copying directories thru java code" Watch "copying directories thru java code" New topic

copying directories thru java code

ganesh khandagar

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
Cindy Glass
"The Hood"

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

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
It's not a secret anymore!