PDA

View Full Version : -My Files- problem with SMB share


Moby
2004-03-14, 23:23
copy from smb share does not make any subdirectories on destination, because a simple dir.name(only smb path) has a slash at the end of the path.
to test it, i made some changes:

guiwindowmyfiles.cpp
line 1231

* * *char* pfilename=cutil::getfilename(pitem->m_strpath);

...changed to...

*cstdstring strcorrectedpath=pitem->m_strpath;
*if (cutil::hasslashatend(strcorrectedpath))
*{
*strcorrectedpath=strcorrectedpath.left(strcorrect edpath.size()-1);
*}
* * *char* pfilename=cutil::getfilename(strcorrectedpath);

it works, but i think this is not the best way to solve this problem.

Bobbin007
2004-03-15, 13:58
fixed in cvs.

thanks

bobbin007