Unfortunately the TFTP specification does not include a way to change directories. Are you wanting to give the server a list of directories and when the user asks for file A.txt have it search through the directories for the file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well as of now all the files that are available through the TFTP server have to reside in the same directory. Could it be possible to add new files through the utility GUI which need not reside in the same directory? There could be a dictionary to store the names of the files and their locations. So whenever a file is requested the TFTP server would look in the dictionary to retrieve the physical location of the file on disk and send it to the client.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately the TFTP specification does not include a way to change directories. Are you wanting to give the server a list of directories and when the user asks for file A.txt have it search through the directories for the file?
Well as of now all the files that are available through the TFTP server have to reside in the same directory. Could it be possible to add new files through the utility GUI which need not reside in the same directory? There could be a dictionary to store the names of the files and their locations. So whenever a file is requested the TFTP server would look in the dictionary to retrieve the physical location of the file on disk and send it to the client.