One of my Java programs lists all of the files and folders in a root directory and then highlights the directories. It therefore runs the File.IsDirectory()
method on each file to determine the colour of the list item. However, I have noticed a very significant performance issue when this check is added. Is there any way to overcome this.
I have considered somehow implementing the dir
Windows command and comparing the output. However, I am not really sure how to do this because of the extra information outputted by the command. Plus, I would like my application to run on Mac OSX too.