Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get FIle attributes?  RSS feed

 
Amrit Tiwana
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way by which I can get various file attributes like Created, Modified, Accessed, readOnly, hidden or may be Created by, Security Permissions etc?

I know few of them we can get from File object but others not.

Thanks
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way by which I can get various file attributes like Created, Modified, Accessed, readOnly, hidden or may be Created by, Security Permissions etc?

I know few of them we can get from File object but others not.

Thanks


modified -- lastModified()
readOnly -- canRead()
hidden -- isHidden()

Thats all i know...

May be FilePermission class could be helpful.... check it out..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!