JimmyWest / SRPPtool

A Secure Remote Pair Programming Tool
0 stars 0 forks source link

Separate File paths #8

Closed JimmyWest closed 9 years ago

JimmyWest commented 9 years ago

File paths in the directory_handler should be divided in to. One which is the one used today and the logical one for the client. As the file system path should never be distributed to clients. the clients should only get path where root is the known working directory of the directory_handler. The directory_handler must have the full path to reach the files on the file system.

Example

The working directory passed to the directory_handler could be /home/user/work. In this directory is a file named test.txt. The directory_handler and file_controller should have the file path : /home/user/work/text.txt But the clients should see this file as /text.txt.

Possible implementation

The module directory_handler. will save in the structure both paths. One physical path, which is the correct file system path. And one virtual which is given to the client. For the virtual path the root directory is the same as the working directory in the directory_handler module.