Migliorata gestione copia tramite ftp
git-svn-id: svn://10.65.10.50/branches/R_10_00@22831 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
56c30da236
commit
3f42778e18
@ -1912,14 +1912,22 @@ BOOLEAN xvt_fsys_set_dir(const DIRECTORY *dirp)
|
||||
BOOLEAN xvt_fsys_fcopy(const char* orig, const char* dest)
|
||||
{
|
||||
wxURL orig_url(orig);
|
||||
if (orig_url.GetScheme() == "ftp")
|
||||
|
||||
wxInputStream* input = NULL;
|
||||
if (orig_url.HasScheme())
|
||||
{
|
||||
wxFTP& ftp = (wxFTP&)orig_url.GetProtocol();
|
||||
ftp.SetPassive(xvt_sys_ftp_passive_mode(orig_url.GetServer()));
|
||||
if (orig_url.GetScheme() == "ftp")
|
||||
{
|
||||
wxFTP& ftp = *wxStaticCast(&orig_url.GetProtocol(), wxFTP);
|
||||
ftp.SetPassive(xvt_sys_ftp_passive_mode(orig_url.GetServer()));
|
||||
}
|
||||
input = orig_url.GetInputStream();
|
||||
}
|
||||
wxInputStream * input = orig_url.GetInputStream();
|
||||
if (input == NULL)
|
||||
else
|
||||
input = new wxFileInputStream(orig);
|
||||
|
||||
if (input == NULL)
|
||||
return FALSE;
|
||||
|
||||
wxURL dest_url(dest);
|
||||
wxOutputStream* output = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user