Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
File Attributes
Kevin Fonner
Greenhorn
Posts: 21
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How can I access the attributes of a file such as creation time and last modified with
java
. Are these properties stored within the file?
Jeff SmithX
Ranch Hand
Posts: 50
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use the lastModified() method on a File to get the time it was last modified. I'm not sure if it's possible to get the creation date or not.
Jeff
Kevin Fonner
Greenhorn
Posts: 21
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Would it be posible to create your own attributes and save them to a file?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Programmatically adding tag descriptors
Doubts in Dynamic Attributes
Manifest Version Headers Appearing Out Of Order
Custom Tags
file attributes
More...