File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attributes on files

 
Stefan Hedberg
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Just wondering how to get the attributes from files that we read?
Some say that java cannot read this and some say you can but they don't know how. Please help me.
 
Adrian Yan
Ranch Hand
Posts: 688
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What attributes are you looking for? The File object can tell you if it's readble or not, the size, modifed time, etc. I dno't believe it can tell you what permission is on the file etc.
 
Stefan G Hedberg
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well it was the permissions I wanted to get. Working on a backup that will work on all systems and that will be able to restore files as they were before the backup. To do that I need to know the permissions on the files so that information can be stored with the file in the db.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic