Tach!
Ich habe mir mal die Mühe gemacht sendtoftp vollkommen neu zu schreiben. Diesmal allerdings nicht in Java, sondern in Gentee. Das Ergebnis ist erstaunlicherweise (ich lerne gentee seit 3 Wochen) annehmbar. Die Geschwindigkeit ist rapide angestiegen und die Größe von 72kb ist auch beeindruckend. Die Fehler aus der Java-Version habe ich nun auch gefixt:
[general]
# ip or dns of the ftp server
host=localhost
# username for the login
username=anonymous
# password for the login
password=anonymous
[link]
# to be added before the path to the file
prefix=http://
# if you want to remove pieces of the links to the files
badprefix=/htdocs
[remote]
# the directory where the files will be uploaded to (relative to the root)
ftpdir=/htdocs/uploads
Neu ist der Parameter “badprefix” welcher besagt das Teile des Pfades zu den Dateien entfernt werden sollen. Beispielsweise um Links zu generieren welche vom Internet aus erreichbar sind. Auch neu ist “prefix”, was einfach das protokoll darstellt, welches den Links vorne angehängt werden soll.
sendtoftp Installer1.0G – 66,3 KB
sendtoftp 1.0G Source – 56,8 KB