Autore Topic: Come limitare l'accesso ad una directory usando FileChooser  (Letto 261 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.269
  • Ne mors quidem nos iunget
    • Mostra profilo
Riporto questa discussione apparsa nella M.L. ufficiale:


" 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?

Marty
"


" Set
Codice: gambas [Seleziona]
ReadOnly = True

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

Kende Krisztián
"
« Ultima modifica: 22 Dicembre 2013, 23:44:50 da vuott »
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »