Antwort auf: Datei downloaden und in einen anderen Ordner verschieben?

Startseite Foren Deutsches LiveCode-Forum Datei downloaden und in einen anderen Ordner verschieben? Antwort auf: Datei downloaden und in einen anderen Ordner verschieben?

#14584
JB1002000
Teilnehmer

    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.