• Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking for file.lastAccess  RSS feed

 
AJ Dussault
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone point me in the right direction here? I can see in the File object that I can easily get lastModified time. Is there any way I can also see information on the lastAccess time?? I don't want (or need) to purchase something, just a push in the right direction would be very helpful!
Thanks in advance,
Amanda
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There may be third party classes which do this, but I don't think you can get the "lastAccessed" time via the "java.io.File" class. Sorry ...
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that some filesystems/ OpSystems don't have an access-time at all.
 
AJ Dussault
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it help if I said I needed this for windows? I can see in windows explorer the Accessed attribute, that is what I need to get from within my Java code....any ideas on how to do that?

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!