Browse Directory


MichaS

Still Fresh
Joined
Sep 4, 2008
Messages
5
Hi,

I have another question. Hopefully, somebody can help me or give me a hint.
I want to browse through the GP2X directory and in my dev-scenario for Windows as well. Do you know a library which wraps this task? Or do I need to write the whole story?
Another question would go to Samba? Anyone experienced here?

Thanx,
Micha.
 
Hi Squidge and Sphinxter,

I've got your message. Yes, that's the way to go for GP2X. Thanx. But I also would like to have at the same time the way for Windows. I thought there were maybe some Libraries available (like SDL) which would do the task for both platforms.
But I see, I have to wrap it my own. No problem.

Any experience for Samba for both platforms? Can you give me some hints to look for?


Thanx again,
Micha.
 
Normally, I do it a little like this:

FileList *GetFileList(foo)
{
#ifdef POSIX
opendir
readdir
...
#else
FindFirstFile
FindNextFile
#endif
}
 
Hi Squidge,

Thanx for your reply :) Yes, I've used the same way.

Is my Samba question clear? We are currently adding a WLAN stick via a USB hub to the GP2X. We want to use the Samba concept to be able to browse to available computer-clients. Any experience/suggestion here?


Thanx again,
Micha.
 
If you install the samba client (it's on the archive), you should be able to simply telnet to the gp2x and do something like:

mkdir /mnt/winshared
smbmount //machine/directory /mnt/winshared

then your pc's shared directory will be available in that directory on the gp2x.
 
Back
Top