This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic