ianharrigan / haxeui-file-dialogs

File dialogs for HaxeUI
7 stars 2 forks source link

Accessing system protected files/folders causes application to crash #6

Open tiagolr opened 10 years ago

tiagolr commented 10 years ago

The file dialogs shows system protected files and folders by default, its easy to click them and suddenly the application crashes.

It took me a while to figure that this was the problem as i was trying to navigate to folders like:

Documents And Settings My Pictures My Music

etc..

tiagolr commented 10 years ago

This can probably be fixed in two ways:

Using try/catch and reporting "failed to access file/folder inside the dialogs", easier to implement.

Hide the system or protected files using sys.FileSystem.stat(path), it would look better but takes more work and if the user has admin access (eg: if running the app as administrator on windows) those files/folders will be unnecessarily hidden.

CherryAnt commented 7 years ago

Hi, it crashes too if i execute as administrator!!! Any idea how to fix that? Thanks