#18681100 : do not chmod for windows server

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7289 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-02-06 16:01:33 +00:00
parent 256647c2d0
commit 4343e0592e

View file

@ -205,6 +205,9 @@
{
return new Object(-1, "msg_make_directory_failed");
}
if(!stristr(PHP_OS, 'win'))
{
if (function_exists('ftp_chmod')) {
if(!ftp_chmod($connection, 0755, $ftp_path))
{
@ -220,6 +223,7 @@
}
}
}
}
if(!ftp_put($connection, $target_dir .'/'. $file, FileHandler::getRealPath($this->download_path."/".$org_file), FTP_BINARY))
{
return new Object(-1, "msg_ftp_upload_failed");