file structure issues
is there any way to block one user from leaving his/her directory? I want one folder for each account, making it easy for security and privacy. can anyone tell me the issue? for instance:
player1 has a folder called /home/runner/Computer/player1.
player1 can access any files in this folder but none else.
player2 has a folder called /home/runner/Computer/player2.
player2 can access any files in this folder but none else.
they should never be able to access the others files. please help if you can
I don't understand the code much, however I feel as if you could do something like:
#Player1,Player2 input = tkinter.filedialog.askdirectory(NAME DIRECTORIES) if input = (Directory): player = player1 else: player = player2 if player = player1: set_filter(directory,pat) else: set_filter(directory,pat)
Sorry if it doesn't make that much sense. I haven't done much with Tkinkter/FileDialog.