• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Files control

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I'm using Windows OS and i want to save the files on Hard disk.
And i want to control that files should not delete manually.

Is it possible if not why?

Thanks
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just see this page for how to use file save dialog. Also I don't think that you can control deletion of files manually from the OS...
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks

If we set the Read only and Not executable attributes some how we can control i think.

And one more

How can i delete the File path tree
means file.delete() will work only if the Dir is empty that's why
 
Rob Spoor
Sheriff
Pie
Posts: 20559
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recursively delete the tree:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic