07-21-2010 06:35 PM
Hello,
I want to know if there are any examples on how to reate folders and navigate through server folder structure in Linux OS. I currently can navigate trough Windows, but need to be able to do it in Linux, by using a GUI for it.
Any suggestions? Thanks
07-22-2010 05:22 PM
Hi Bebeto,
Would you please clarify your question a bit for us? Are you trying to implement something like Windows Explorer in your application? Also, are you looking for a tree-like display structure, or list of folders that you can drill down into (i.e. double click to enter into that that folder). My understanding from your comments is that you have implemented something like this in Windows, but not Linux. It this correct? Also, are you looking for advice on the GUI creation side of things, or the programmatic access/creation of files and folders? The more you can clarify your question for us, the more the community will be able to provide feedback and suggestions to help you get on track qiuckly.
Have a great afternoon!
John M
07-23-2010 10:06 AM
Thanks John,
Currently when I upload a file to the server (Linux) it is saved in one specific location. I want to be able to navigate in Linux and create folders to save the file as desired. It doesn't really matter if it is a tree structure or list of folders.
And yes I am also looking on the GUI creation side with the programmatic creation of the folders.
Again thanks for the inputs..
07-26-2010 05:03 PM - edited 07-26-2010 05:03 PM
Hi Bebeto,
I have a couple more clarification questions for you... what is the the relationship between where this program is running and the server that the file is being uploaded to? Have you written an application on the server to handle the receiving of files? How are you uploading the file to the server? Is this being done through FTP, SCP, Sockets or some other method in your application? Are both the client and the server running Linux?
Thanks,
John M
07-27-2010 09:53 PM
Hello John,
Yes the server has an application to receive and send messages, the server is using LynxOS. The transfer of files is being done by TCP/IP, and only the server runs Linux.
I am in the stage of sending a msg type to the server and then getting a list of the directories, then depending on the user's choice it will go in depth another level to upload the file there or create a folder in that directory to save the file in the folder.
Do you have any suggestions for this?
I am looking at DirSelectPopup to do this, do you have any other tip?
07-29-2010 11:15 AM
Hey Bebeto,
If your server and client are setup so that you can browse files on the server from the client (without FTP), then you should be able to use the DirSelectPopup. However, if you are connecting over FTP, you will need to populate something like a list box or tree control to display your folder structure and files. If you are using FTP, take a look at the FTP functions in the Internet Library of CVI. With the FTP commands, you should be able to fetch the contents of the current directory, as well as change the current directory.
John M