Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copying directories thru java code

 
ganesh khandagar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have security permissions to the target directory?
 
ganesh khandagar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah i created the directory brand new.. also i tried with an existing dir that had all permissions
 
Karthikeyan Rajendraprasad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic