[Gambas-user] How do I limit directory access using the file open dialog?

Kende Krisztián nemh at ...2007...
Sun Dec 22 19:44:08 CET 2013


2013-12-22 18:35 keltezéssel, Marty írta:
> Hello,
>
> I'm using the open file dialog to allow the user to select one file. I
> want to limit his access to only one directory to limit the damage he
> can do. I've set the dialog.path = "/home/xxx/xx". The specified
> directory is highlighted but the entire directory tree from root down is
> also accessible. Files in each directory above and below the intended
> directory can be opened. The filechooser allows for such a limit. Do I
> have to recode using the filechooser or have I missed something?
>
> Thanks
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>

Set 'ReadOnly = True' (damage eliminated), or write an own file chooser. 
Need to add a 'TreeView' and some 'Button'.




More information about the User mailing list