FSN#29180 FTP was al open en folder was al gezet

svn path=/Website/branches/v5.4.1/; revision=21138
This commit is contained in:
Jos Groot Lipman
2014-03-26 13:14:48 +00:00
parent 2b8109c583
commit 778b15299b

View File

@@ -15,10 +15,6 @@ function sendFTP(p_connect, p_file, p_data, p_path)
{
try
{
// Log2File(1, "Geef de subdirectory vanaf de ftproot mee in de URL of eindig de URL niet met een slash om de standaard directory te gebruiken.");
var subdir = p_connect.Subfolder;
p_connect.connection.Open();
p_connect.connection.SetCurrentDir(subdir);
if (p_path)
{
objFso = new ActiveXObject("Scripting.FileSystemObject");
@@ -31,7 +27,6 @@ function sendFTP(p_connect, p_file, p_data, p_path)
Log2File(1, "Transfer file: " + p_file + " (size: " + p_data.length + ")");
p_connect.connection.PutFileFromTextData(p_file, p_data); // Alleen een tekst-string schrijven.
}
p_connect.connection.Close();
FTPsend = true;
}
catch(e)