check if File Object is a system file (windows & Mac)
I'm filling a JTree with user system files/folders and I'm using the File class for this purpose.
I noticed the JTree displays also hidden & system files which will confuse the user of my application.
I first thought to use some File method & isHidden() was first candidate.I first tried
but that's not working ..i tried
which seems to do better but I'm still incapable of solving this issue.
I'm planning to use Runtime.exec() but don't know what commands to use to check system & hidden files .this should take in consideration the OS windows or Mac.I think this checking should be OS centric as i guess there is No cross Platform way to solve this issue ?
am I right ? or is there any way in Java to check if a given File Object is a system file and/or a hidden file?
can some one suggest me a good and simple solution for this problem ?
By shadowspell in forum VB Classic
Last Post: 05-20-2005, 03:32 AM
By jase_dukerider in forum C++
Last Post: 04-14-2005, 08:48 PM
By James Abbott in forum VB Classic
Last Post: 09-30-2001, 03:11 AM
By Andrew McLellan in forum Java
Last Post: 05-09-2001, 06:34 PM
By Michael Kascher in forum VB Classic
Last Post: 05-31-2000, 03:48 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center