ComposantsComponents › Internet › FTP
Lit les propriétés d'un fichier d'un serveur FTP, FTPS ou SFTP (chemin, taille, date de modification et, en option, empreinte MD5) et les envoie en une seule ligne sur un lien Main. C'est le pendant distant de tFileProperties, avec moins de colonnes (pas de droits) et des valeurs qui changent selon le protocole : en FTP la date est arrondie à la minute et donnée en millisecondes, en SFTP elle est exacte et donnée en secondes ; un fichier absent donne une ligne de null en FTP, une erreur en SFTP.
Reads the properties of a file of an FTP, FTPS or SFTP server (path, size, modification date and, as an option, MD5 hash) and sends them as a single row on a Main link. It is the remote counterpart of tFileProperties, with fewer columns (no rights) and values that change with the protocol: in FTP the date is rounded to the minute and given in milliseconds, in SFTP it is exact and given in seconds; a missing file gives a row of null in FTP, an error in SFTP.
EntréeInput
Aucune : il commence son sous-job. Sinon un lien Iterate, par exemple depuis un tFTPFileList (une ligne par itération). None: it starts its subjob. Otherwise one Iterate link, for instance from a tFTPFileList (one row per iteration).
SortieOutput
Un lien Main, obligatoire : une ligne, avec le schéma fixe du composant. Sans lui, le composant ne fait rien. One Main link, required: one row, with the fixed schema of the component. Without it, the component does nothing.
Déclencheurs en sortieOutput triggers
On Subjob Ok On Subjob Error On Component Ok On Component Error Run if
Le tLogRow affiche la ligne ; à sa place, un tJavaRow ou un tFilterRow peut décider de la suite selon la taille ou la date. Voir les exemples. The tLogRow prints the row; instead, a tJavaRow or a tFilterRow can decide what comes next from the size or the date. See the examples.
Fichier : ((String) globalMap.get("tFTPFileList_1_CURRENT_FILE")), même Répertoire distant que la liste, et une connexion partagée par un tFTPConnection. Voir l'exemple de tFTPFileList.
File: ((String) globalMap.get("tFTPFileList_1_CURRENT_FILE")), same Remote directory as the list, and a connection shared by a tFTPConnection. See the example of tFTPFileList.
"/in", "orders.csv". Cochez Calculer le hachage MD5 si vous voulez l'empreinte : la colonne md5 s'ajoute au schéma.
Set the Remote directory and the File, its name only, as Java expressions: "/in", "orders.csv". Check Calculate MD5 Hash if you want the hash: the md5 column is added to the schema.
Les libellés sont ceux de l'onglet Composant ; le nom technique, en gris, est celui du paramètre dans le fichier du job. Labels are those of the Component tab; the technical name, in grey, is the parameter name in the job file.
| ParamètreSetting | DéfautDefault | VisibleShown | Description |
|---|---|---|---|
| Utiliser une connexion existanteUse an existing connectionUSE_EXISTING_CONNECTION | NonNo | ToujoursAlways | Reprend la connexion ouverte par un tFTPConnection, avec son protocole ; le composant ne la ferme pas. Sans connexion existante, il ouvre la sienne et la ferme une fois la ligne envoyée. Takes the connection opened by a tFTPConnection, with its protocol; the component does not close it. Without an existing connection, it opens its own and closes it once the row is sent. |
| Liste des composantsComponent listCONNECTION | videempty | Connexion existante cochéeExisting connection checked | Le tFTPConnection à utiliser. The tFTPConnection to use. |
Les paramètres de connexion ont les mêmes défauts et conditions d'affichage que dans tFTPConnection, où ils sont décrits en détail, et sont cachés dès que Utiliser une connexion existante est coché : hôte, port, utilisateur et mot de passe, Support de SFTP ou Support de FTPS et leurs réglages (méthode d'authentification et clé privée, magasin de clés, mode de sécurité), mode de connexion, encodage ; en paramètres avancés, le proxy Socks, la protection FTPS, la vérification distante, le délai de connexion, le parsage strict et Config client. The connection settings have the same defaults and display conditions as in tFTPConnection, where they are described in detail, and are hidden as soon as Use an existing connection is checked: host, port, user and password, SFTP Support or FTPS Support and their settings (authentication method and private key, keystore, security mode), connection mode, encoding; in advanced settings, the Socks proxy, FTPS protection, remote verification, the connection timeout, strict reply parsing and Config client.
Différences : l'utilisateur s'affiche Identifiant en français, et, en anglais, host, port, username et password sont en minuscules ; l'utilisateur et le mot de passe s'appellent USERNAME et PASSWORD dans le fichier du job (USER et PASS dans tFTPConnection) ; le mot de passe vaut "suomynona" par défaut (vide dans tFTPConnection) ; un paramètre avancé de plus, Ignorer les erreurs à la fermeture (FTP), décrit plus bas.
Differences: the user is shown as Identifiant in French, and, in English, host, port, username and password are in lower case; the user and the password are named USERNAME and PASSWORD in the job file (USER and PASS in tFTPConnection); the password is "suomynona" by default (empty in tFTPConnection); one more advanced setting, Ignore Failure At Quit (FTP), described below.
| ParamètreSetting | DéfautDefault | VisibleShown | Description |
|---|---|---|---|
| SchémaSchemaSCHEMA | 6 colonnes6 columns | ToujoursAlways |
En lecture seule : les colonnes de la ligne de sortie. Une septième, md5, s'ajoute quand Calculer le hachage MD5 est coché.
Read-only: the columns of the output row. A seventh one, md5, is added when Calculate MD5 Hash is checked.
|
| Répertoire distantremote directoryREMOTEDIR | "." |
ToujoursAlways |
Le répertoire du fichier, en expression Java : "/in". Un chemin relatif part du répertoire de connexion ou, avec une connexion FTP existante, du répertoire courant de la connexion. Il est recopié dans dirname et au début de abs_path tel qu'il est écrit : relatif, il donne un abs_path relatif.
The directory of the file, as a Java expression: "/in". A relative path starts from the login directory or, with an existing FTP connection, from the current directory of the connection. It is copied into dirname and at the start of abs_path as written: relative, it gives a relative abs_path.
|
| FichierFileFILENAME | "filename.suffix" |
ToujoursAlways |
Le nom du fichier dans le Répertoire distant, en expression Java. En FTP, le composant demande la liste du répertoire et y cherche ce nom exact, casse comprise : un nom avec un chemin ("in/notes.txt") n'y est jamais trouvé. En SFTP, il demande les attributs de répertoire + "/" + fichier, et c'est le serveur qui résout le chemin et la casse.
The name of the file in the Remote directory, as a Java expression. In FTP, the component asks for the list of the directory and looks in it for that exact name, case included: a name with a path ("in/notes.txt") is never found there. In SFTP, it asks for the attributes of directory + "/" + file, and the server resolves the path and the case.
|
| Mode de transfertTransfer modeMODE | ASCIIascii | FTP simple (ni SFTP ni FTPS), connexion propre ou existantePlain FTP (neither SFTP nor FTPS), own or existing connection |
ASCII ou Binaire (ascii, binary en anglais) : le type de transfert (TYPE A ou TYPE I) envoyé au serveur avant de lire la liste. Il ne compte que pour le MD5, qui télécharge le fichier : en ASCII, un serveur qui convertit les fins de ligne change l'empreinte (voir l'exemple). Avec une connexion existante, le type reste réglé ainsi sur la connexion. En FTPS, le transfert se fait toujours en binaire.
ascii or binary (ASCII, Binaire in French): the transfer type (TYPE A or TYPE I) sent to the server before reading the list. It only matters for the MD5, which downloads the file: in ASCII, a server that converts line endings changes the hash (see the example). With an existing connection, the type stays set that way on the connection. In FTPS, the transfer is always binary.
|
| Calculer le hachage MD5Calculate MD5 HashMD5 | NonNo | ToujoursAlways |
Télécharge tout le fichier, sans l'écrire sur disque, pour calculer son empreinte MD5, écrite dans md5 en 32 chiffres hexadécimaux minuscules. Sur un dossier, le job s'arrête (voir les erreurs).
Downloads the whole file, without writing it to disk, to compute its MD5 hash, written in md5 as 32 lowercase hexadecimal digits. On a folder, the job stops (see the errors).
|
En plus des paramètres de connexion, cachés avec une connexion existante. In addition to the connection settings, hidden with an existing connection.
| ParamètreSetting | DéfautDefault | VisibleShown | Description |
|---|---|---|---|
| Ignorer les erreurs à la fermeture (FTP)Ignore Failure At Quit (FTP)IGNORE_FAILURE_AT_QUIT | NonNo | FTP simple (ni SFTP ni FTPS), connexion propre ou existantePlain FTP (neither SFTP nor FTPS), own or existing connection |
Coché : une erreur d'entrée-sortie pendant la fermeture de la connexion n'arrête pas le composant ; son message est rangé dans tFTPFileProperties_1_ERROR_MESSAGE. Sans effet avec une connexion existante, que le composant ne ferme pas.
Checked: an input-output error while closing the connection does not stop the component; its message is stored in tFTPFileProperties_1_ERROR_MESSAGE. No effect with an existing connection, which the component does not close.
|
Une seule ligne, schéma en lecture seule. Le composant n'a pas de variable globale propre. Les valeurs ont été mesurées sur les serveurs d'essai ; FTPS donne les mêmes qu'FTP. A single row, read-only schema. The component has no global variable of its own. The values were measured on the test servers; FTPS gives the same as FTP.
| ColonneColumn | FTP, FTPS | SFTP |
|---|---|---|
| abs_pathString | répertoire + "/" + nom, les // réduits à /. Absolu seulement si le Répertoire distant l'est.directory + "/" + name, with // reduced to /. Absolute only if the Remote directory is. |
|
| dirnameString | Le Répertoire distant tel qu'il est écrit, / final compris (/in/). En FTP, ses \ sont changés en /.The Remote directory as written, trailing / included (/in/). In FTP, its \ are changed to /. |
|
| basenameString | Le nom tel que le serveur le listeThe name as listed by the server | Le Fichier tel qu'il est écrit (chemin et casse compris)The File as written (path and case included) |
| sizeLong | La taille en octets ; 0 pour un dossier sur les serveurs d'essai.The size in bytes; 0 for a folder on the test servers. |
|
| mtimeLong | En millisecondes depuis le 1er janvier 1970 (UTC), déduites de la date de la liste du serveur : secondes à zéro, et seulement le jour (minuit) pour un fichier de plus de six mois environ. L'heure du serveur est lue comme si elle était dans le fuseau horaire du job.In milliseconds since January 1st, 1970 (UTC), worked out from the date of the server listing: seconds at zero, and only the day (midnight) for a file older than about six months. The time of the server is read as if it were in the time zone of the job. | En secondes depuis le 1er janvier 1970 (UTC), exactes.In seconds since January 1st, 1970 (UTC), exact. |
| mtime_stringString | La même date en texte, au format fixe de Java (Mon Nov 16 14:42:00 CET 2026), dans le fuseau horaire du job ; arrondie en FTP comme mtime.The same date as text, in the fixed Java format (Mon Nov 16 14:42:00 CET 2026), in the time zone of the job; rounded in FTP like mtime. |
|
| md5String | Seulement avec MD5 coché. Empreinte des octets reçus dans le Mode de transfert choisiOnly with MD5 checked. Hash of the bytes received in the chosen Transfer mode | Seulement avec MD5 coché. Empreinte du fichierOnly with MD5 checked. Hash of the file |
| Fichier absentMissing file | Une ligne dont toutes les colonnes valent null, sans erreur (répertoire absent aussi)A row whose columns are all null, without an error (missing directory too) |
Erreur 2: No such file, le job s'arrête2: No such file error, the job stops |
Pas de colonne pour les droits, le propriétaire ou le type de l'entrée : la ligne complète de la liste du serveur, avec les droits, s'obtient avec tFTPFileList et Détail du fichier. No column for the rights, the owner or the type of the entry: the full line of the server listing, with the rights, is given by tFTPFileList and File detail.
Deux serveurs d'essai, un serveur FTP et un serveur SFTP, tous deux sous Windows et dans le fuseau horaire du job (Paris), ont le même répertoire /in. orders_2026-02.csv (15 octets) y a été modifié le 16 novembre 2026 à 14:42:07, notes.txt (9 octets) le 20 novembre à 17:03:30, archive/orders_2025-12.csv (22 octets) le 31 décembre 2025 à 18:30:00. Dans chaque job, tFTPFileProperties_1 est relié à un tLogRow en mode Vertical. Les sorties sont celles de la console, copiées depuis une exécution du job.
Two test servers, an FTP server and an SFTP server, both on Windows and in the time zone of the job (Paris), have the same /in directory. orders_2026-02.csv (15 bytes) was modified there on November 16, 2026 at 14:42:07, notes.txt (9 bytes) on November 20 at 17:03:30, archive/orders_2025-12.csv (22 bytes) on December 31, 2025 at 18:30:00. In each job, tFTPFileProperties_1 is connected to a tLogRow in Vertical mode. The outputs are the console ones, copied from a run of the job.
Répertoire distant "/in", Fichier "orders_2026-02.csv". À gauche le serveur FTP, à droite le même job avec Support de SFTP coché.
Remote directory "/in", File "orders_2026-02.csv". On the left the FTP server, on the right the same job with SFTP Support checked.
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/orders_2026-02.csv | | dirname | /in | | basename | orders_2026-02.csv | | size | 15 | | mtime | 1794836520000 | | mtime_string | Mon Nov 16 14:42:00 CET 2026 | +--------------+------------------------------+
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/orders_2026-02.csv | | dirname | /in | | basename | orders_2026-02.csv | | size | 15 | | mtime | 1794836527 | | mtime_string | Mon Nov 16 14:42:07 CET 2026 | +--------------+------------------------------+
En FTP, la date vient de la liste du serveur (Nov 16 14:42) : les 7 secondes sont perdues, et mtime est en millisecondes. En SFTP, la date est exacte, mais mtime est en secondes : le même instant donne un nombre mille fois plus petit. Le même job en FTPS donne la sortie de gauche.
In FTP, the date comes from the server listing (Nov 16 14:42): the 7 seconds are lost, and mtime is in milliseconds. In SFTP, the date is exact, but mtime is in seconds: the same instant gives a number a thousand times smaller. The same job in FTPS gives the output on the left.
Le même fichier, Calculer le hachage MD5 coché. Serveur FTP : The same file, Calculate MD5 Hash checked. FTP server:
.-------------------------------------------------. | #1. tLogRow_1 | +--------------+----------------------------------+ | key | value | +--------------+----------------------------------+ | abs_path | /in/orders_2026-02.csv | | dirname | /in | | basename | orders_2026-02.csv | | size | 15 | | mtime | 1794836520000 | | mtime_string | Mon Nov 16 14:42:00 CET 2026 | | md5 | ad392193fbefb2c83ca6dbd7e6e14782 | +--------------+----------------------------------+
C'est le MD5 que donne md5sum orders_2026-02.csv sur le serveur. SFTP et FTPS donnent la même empreinte. Ici, le serveur FTP ne convertit pas les fins de ligne : le Mode de transfert ASCII, par défaut, ne change rien.
It is the MD5 given by md5sum orders_2026-02.csv on the server. SFTP and FTPS give the same hash. Here, the FTP server does not convert line endings: the default ASCII Transfer mode changes nothing.
Un serveur FTP qui, en ASCII, change les fins de ligne LF en CRLF à l'envoi, comme le font certains serveurs. Fichier "orders_2026-01.csv" (21 octets, 3 lignes), MD5 coché. Mode de transfert ASCII (défaut), puis Binaire ; seule la ligne md5 est reprise :
An FTP server that, in ASCII, changes the LF line endings into CRLF when sending, as some servers do. File "orders_2026-01.csv" (21 bytes, 3 lines), MD5 checked. Transfer mode ascii (default), then binary; only the md5 line is shown:
| md5 | 7a644858e8e997d539669a6740b53af9 |
| md5 | 3894ad3a220d5999fd9a54456a408d9c |
En ASCII, le serveur a envoyé 24 octets au lieu de 21 (journal du serveur : Opening ASCII mode data connection … (24 bytes)) et l'empreinte est celle de la copie convertie. En binaire, c'est celle du fichier (md5sum). size reste 21 dans les deux cas. Le résultat en ASCII dépend du serveur, et aussi du système qui exécute le job ; pour comparer des empreintes, choisissez Binaire.
In ASCII, the server sent 24 bytes instead of 21 (server log: Opening ASCII mode data connection … (24 bytes)) and the hash is the one of the converted copy. In binary, it is the one of the file (md5sum). size stays 21 in both cases. The result in ASCII depends on the server, and also on the system that runs the job; to compare hashes, choose binary.
Répertoire distant "/in/archive", Fichier "orders_2025-12.csv", modifié il y a plus de six mois. FTP à gauche, SFTP à droite.
Remote directory "/in/archive", File "orders_2025-12.csv", modified more than six months ago. FTP on the left, SFTP on the right.
.-----------------------------------------------. | #1. tLogRow_1 | +--------------+--------------------------------+ | key | value | +--------------+--------------------------------+ | abs_path | /in/archive/orders_2025-12.csv | | dirname | /in/archive | | basename | orders_2025-12.csv | | size | 22 | | mtime | 1767135600000 | | mtime_string | Wed Dec 31 00:00:00 CET 2025 | +--------------+--------------------------------+
.-----------------------------------------------. | #1. tLogRow_1 | +--------------+--------------------------------+ | key | value | +--------------+--------------------------------+ | abs_path | /in/archive/orders_2025-12.csv | | dirname | /in/archive | | basename | orders_2025-12.csv | | size | 22 | | mtime | 1767202200 | | mtime_string | Wed Dec 31 18:30:00 CET 2025 | +--------------+--------------------------------+
Pour un fichier de plus de six mois, la liste du serveur FTP donne l'année au lieu de l'heure (Dec 31 2025) : le composant ne connaît que le jour, et met minuit. En SFTP, l'heure exacte.
For a file older than six months, the FTP server listing gives the year instead of the time (Dec 31 2025): the component only knows the day, and uses midnight. In SFTP, the exact time.
Le premier exemple, job lancé avec l'argument JVM -Duser.timezone=UTC ; les serveurs restent à l'heure de Paris. FTP à gauche, SFTP à droite.
The first example, job run with the -Duser.timezone=UTC JVM argument; the servers stay on Paris time. FTP on the left, SFTP on the right.
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/orders_2026-02.csv | | dirname | /in | | basename | orders_2026-02.csv | | size | 15 | | mtime | 1794840120000 | | mtime_string | Mon Nov 16 14:42:00 UTC 2026 | +--------------+------------------------------+
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/orders_2026-02.csv | | dirname | /in | | basename | orders_2026-02.csv | | size | 15 | | mtime | 1794836527 | | mtime_string | Mon Nov 16 13:42:07 UTC 2026 | +--------------+------------------------------+
En FTP, l'heure affichée par le serveur (14:42, heure de Paris) est prise pour 14:42 UTC : mtime avance d'une heure (3 600 000 ms de plus qu'au premier exemple). En SFTP, l'instant est le même ; seul le texte change de fuseau. En FTP, la date n'est juste que si le job et le serveur sont dans le même fuseau horaire.
In FTP, the time shown by the server (14:42, Paris time) is taken as 14:42 UTC: mtime moves one hour forward (3,600,000 ms more than in the first example). In SFTP, the instant is the same; only the text changes time zone. In FTP, the date is only right if the job and the server are in the same time zone.
Fichier "orders_2026-03.csv", qui n'existe pas. Même sortie avec un répertoire absent ("/nosuch"), ou avec "NOTES.TXT" au lieu de notes.txt.
File "orders_2026-03.csv", which does not exist. Same output with a missing directory ("/nosuch"), or with "NOTES.TXT" instead of notes.txt.
.----------------------. | #1. tLogRow_1 | +--------------+-------+ | key | value | +--------------+-------+ | abs_path | null | | dirname | null | | basename | null | | size | null | | mtime | null | | mtime_string | null | +--------------+-------+
Le job se termine normalement : la ligne de null part vers la suite. En SFTP, le même réglage arrête le job (voir les erreurs).
The job ends normally: the row of null goes on. In SFTP, the same setting stops the job (see the errors).
Serveur SFTP, Répertoire distant "/in", Fichier "NOTES.TXT" ; le fichier s'appelle notes.txt.
SFTP server, Remote directory "/in", File "NOTES.TXT"; the file is named notes.txt.
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/NOTES.TXT | | dirname | /in | | basename | NOTES.TXT | | size | 9 | | mtime | 1795190610 | | mtime_string | Fri Nov 20 17:03:30 CET 2026 | +--------------+------------------------------+
Le serveur d'essai, sous Windows, ignore la casse et trouve le fichier ; un serveur Linux répondrait en général « fichier absent ». basename recopie le nom demandé, pas celui du fichier. De même, Répertoire distant "." et Fichier "in/notes.txt" trouvent le fichier en SFTP (basename : in/notes.txt), pas en FTP.
The test server, on Windows, ignores case and finds the file; a Linux server would usually answer “missing file”. basename copies the requested name, not the one of the file. Likewise, Remote directory "." and File "in/notes.txt" find the file in SFTP (basename: in/notes.txt), not in FTP.
À gauche, Fichier "archive", un dossier, dans "/in" (serveur FTP). À droite, Répertoire distant "in", relatif, Fichier "notes.txt" (serveur SFTP).
On the left, File "archive", a folder, in "/in" (FTP server). On the right, Remote directory "in", relative, File "notes.txt" (SFTP server).
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | /in/archive | | dirname | /in | | basename | archive | | size | 0 | | mtime | 1767308400000 | | mtime_string | Fri Jan 02 00:00:00 CET 2026 | +--------------+------------------------------+
.---------------------------------------------. | #1. tLogRow_1 | +--------------+------------------------------+ | key | value | +--------------+------------------------------+ | abs_path | in/notes.txt | | dirname | in | | basename | notes.txt | | size | 9 | | mtime | 1795190610 | | mtime_string | Fri Nov 20 17:03:30 CET 2026 | +--------------+------------------------------+
Un dossier donne une ligne comme un fichier, avec une taille de 0 (ici en FTP ; en SFTP aussi). Un répertoire relatif donne un abs_path relatif, malgré son nom.
A folder gives a row like a file, with a size of 0 (here in FTP; in SFTP too). A relative directory gives a relative abs_path, despite its name.
Le nom du job est remplacé par MyJob ; les traces d'exception sont abrégées.
The job name is replaced with MyJob; exception traces are shortened.
Fichier "orders_2026-03.csv", qui n'existe pas (même erreur avec un répertoire absent) :
File "orders_2026-03.csv", which does not exist (same error with a missing directory):
Exception in component tFTPFileProperties_1 (MyJob) 2: No such file at com.jcraft.jsch.ChannelSftp.throwStatusError(…) … at demo.myjob_0_1.MyJob.tFTPFileProperties_1Process(MyJob.java:1268) …
Le job s'arrête avec le code 1 et aucune ligne n'est envoyée. Le texte après 2: vient du serveur. Si le fichier peut manquer, placez un tFTPFileExist avant, relié par un Run if.
The job stops with exit code 1 and no row is sent. The text after 2: comes from the server. If the file can be missing, put a tFTPFileExist before, connected with a Run if.
Fichier "archive", un dossier, MD5 coché. En FTP :
File "archive", a folder, MD5 checked. In FTP:
Exception in component tFTPFileProperties_1 (MyJob) java.lang.NullPointerException: Cannot invoke "java.io.InputStream.read(byte[])" because "<local20>" is null at demo.myjob_0_1.MyJob.tFTPFileProperties_1Process(MyJob.java:1294) …
En SFTP : In SFTP:
Exception in component tFTPFileProperties_1 (MyJob) java.io.IOException: error at com.jcraft.jsch.ChannelSftp$2.read(…) … at demo.myjob_0_1.MyJob.tFTPFileProperties_1Process(MyJob.java:1350) …
Le serveur refuse de transférer un dossier ; le message ne le dit pas. Après un tFTPFileList, choisissez un masque qui écarte les dossiers. The server refuses to transfer a folder; the message does not say so. After a tFTPFileList, choose a mask that leaves the folders out.
mtime change d'unité avec le protocolemtime changes unit with the protocol
Millisecondes en FTP et FTPS, secondes en SFTP (Talaxie 9.0.6). Pour une date : new java.util.Date(row1.mtime) en FTP, new java.util.Date(row1.mtime * 1000L) en SFTP. Un job qui passe d'un protocole à l'autre doit changer ce calcul, et toute comparaison avec une date.
Milliseconds in FTP and FTPS, seconds in SFTP (Talaxie 9.0.6). For a date: new java.util.Date(row1.mtime) in FTP, new java.util.Date(row1.mtime * 1000L) in SFTP. A job that moves from one protocol to the other must change this computation, and any comparison with a date.
Elles viennent de la liste du serveur : à la minute près, au jour près pour les fichiers anciens, et justes seulement si le serveur et le job sont dans le même fuseau horaire. Pour comparer finement des dates, préférez SFTP, ou gardez une marge. They come from the server listing: to the minute, to the day for old files, and only right if the server and the job are in the same time zone. To compare dates finely, prefer SFTP, or keep a margin.
null ou erreurMissing file: null or error
En FTP, testez abs_path (ou size) à null dans un tFilterRow ou un tJavaRow ; un nom écrit avec une autre casse donne aussi null. En SFTP, le job s'arrête : placez un tFTPFileExist avant, ou un lien On Component Error.
In FTP, test abs_path (or size) for null in a tFilterRow or a tJavaRow; a name written with another case also gives null. In SFTP, the job stops: put a tFTPFileExist before, or an On Component Error link.
En FTP, le Mode de transfert vaut ASCII par défaut : passez-le en Binaire pour obtenir l'empreinte du fichier lui-même. Le calcul télécharge tout le fichier : sur de gros fichiers, il prend le temps d'un téléchargement. In FTP, the Transfer mode is ascii by default: set it to binary to get the hash of the file itself. The computation downloads the whole file: on big files, it takes the time of a download.
Sans lien de sortie, le composant n'engendre aucun code : ni connexion, ni erreur, et le job continue comme s'il n'était pas là. Le Studio signale le lien manquant par un avertissement ; Talaxie 9.0.6 ne le signale pas. À partir de Talaxie 9.0.7, le composant porte une pastille orange, avec le message du Studio. Without an output link, the component generates no code: no connection, no error, and the job goes on as if it were not there. The Studio reports the missing link with a warning; Talaxie 9.0.6 does not report it. From Talaxie 9.0.7, the component carries an orange badge, with the message of the Studio.
En FTP, il envoie le Mode de transfert (TYPE A par défaut), puis demande la liste complète du Répertoire distant (LIST /in) pour y trouver le fichier, et le télécharge (RETR) si MD5 est coché. En SFTP, une seule demande d'attributs, plus le téléchargement pour le MD5.
In FTP, it sends the Transfer mode (TYPE A by default), then asks for the full list of the Remote directory (LIST /in) to find the file in it, and downloads it (RETR) if MD5 is checked. In SFTP, a single attribute request, plus the download for the MD5.
tFTPConnection · tFTPClose · ouvrir et fermer la connexion partagéeopen and close the shared connectiontFTPFileList · les fichiers d'un répertoire, avec leurs droitsthe files of a directory, with their rightstFTPFileExist · tester le fichier avanttest the file firsttFTPGet · télécharger le fichierdownload the filetFileProperties · les mêmes propriétés sur la machine du jobthe same properties on the job machinetLogRow · afficher la ligneprint the row