Startseite › Foren › Deutsches LiveCode-Forum › Datei downloaden und in einen anderen Ordner verschieben? › Antwort auf: Datei downloaden und in einen anderen Ordner verschieben?
Mai 5, 2019 um 17:58 Uhr
#14584
Also ich habe den Code wie folgt geändert:
on mouseUp
//Variablen deklaration
put (specialFolderPath("documents") & "/UpdateApp") into SpeicherPath
put (specialFolderPath("documents") & "/UpdateApp/Zusatzdatei.livecode") into Zusatzdatei
put (specialFolderPath("documents") & "/UpdateApp/Version.txt") into DateiVersion
//Prüfen ob OrdnerZusatzdaten vorhanden ist
if there is a folder SpeicherPath then
put URL ("ftp://backup-server:MEIN_PASSWORT@backup-server.bplaced.net:2121/App/UpdateApp/Zusatzdaten/Zusatzdatei.livecode") into url("binfile:" & Zusatzdatei)
if the result <> EMPTY then
answer "Problem:" && the result
end if
put URL ("ftp://backup-server:MEIN_PASSWORT@backup-server.bplaced.net:2121/App/UpdateApp/Zusatzdaten/Version.txt") into url("binfile:" & DateiVersion)
if the result <> EMPTY then
answer "Problem:" && the result
end if
else
create folder SpeicherPath
put URL ("ftp://backup-server:MEIN_PASSWORT@backup-server.bplaced.net:2121/App/UpdateApp/Zusatzdaten/Zusatzdatei.livecode") into url("binfile:" & Zusatzdatei)
if the result <> EMPTY then
answer "Problem:" && the result
end if
put URL ("ftp://backup-server:MEIN_PASSWORT@backup-server.bplaced.net:2121/App/UpdateApp/Zusatzdaten/Version.txt") into url("binfile:" & DateiVersion)
if the result <> EMPTY then
answer "Problem:" && the result
end if
end if
end mouseUp
Ich habe mir die Schreibarbeit erstmal noch nicht vereinfacht, mache ich dann wenn es richtig funktioniert.
ich bekomme keine Meldung angezeigt.