ComposantsComponents

ComposantsComponents › Internet › FTP

tFTPRename

tFTPRename

Internet / FTP

Renomme des fichiers sur un serveur FTP, FTPS ou SFTP, ou les déplace vers un autre dossier du même serveur. Chaque ligne de la table Fichiers donne un nom et son nouveau nom, relatifs au Répertoire distant ; le nombre de fichiers renommés est rangé dans une variable globale. Usage type : archiver ou marquer un fichier après son téléchargement. Le composant ouvre sa propre connexion ou se sert de celle d'un tFTPConnection. Pour la machine du job, prenez un tFileCopy (copie avec suppression). Renames files on an FTP, FTPS or SFTP server, or moves them to another folder of the same server. Each row of the Files table gives a name and its new name, relative to the Remote directory; the number of renamed files is stored in a global variable. Typical use: archive or mark a file after downloading it. The component opens its own connection or uses the one of a tFTPConnection. For the machine of the job, take a tFileCopy (copy with removal).

EntréeInput

Aucune : il peut commencer un sous-job. Sinon un lien Iterate (tout le composant à chaque itération) ou Main, qui ne sert pas à choisir les fichiers (voir Les liens). None: it can start a subjob. Otherwise one Iterate link (the whole component at each iteration) or Main link, which cannot choose the files (see Links).

SortieOutput

Facultative. Iterate : une itération par ligne de la table Fichiers, après son renommage. Main : les lignes reçues, inchangées, une fois par ligne de la table. Optional. Iterate: one iteration per row of the Files table, after its renaming. Main: the rows received, unchanged, once per row of the table.

Déclencheurs en sortieOutput triggers

On Subjob Ok On Subjob Error On Component Ok On Component Error Run if

UtilisationUsage

Archiver après téléchargementArchive after download

OnSubjobOk OnSubjobOk OnSubjobOk tFTPConnection_1 tFTPGet_1 tFTPRename_1 tFTPClose_1

Le fichier récupéré est déplacé dans un sous-dossier : Nom de fichier "orders.csv", Nouveau nom "archive/orders_" + TalendDate.getDate("yyyyMMdd") + ".csv". Le dossier d'arrivée doit exister. The fetched file is moved into a sub-folder: Filename "orders.csv", New name "archive/orders_" + TalendDate.getDate("yyyyMMdd") + ".csv". The target folder must exist.

Vérifier le résultatCheck the result

If tFTPRename_1 tDie_1

En FTP, un renommage refusé par le serveur (fichier absent, nom déjà pris) n'est pas une erreur. Testez NB_FILE : ((Integer) globalMap.get("tFTPRename_1_NB_FILE")) < 1 pour un fichier attendu. Over FTP, a renaming refused by the server (missing file, name already taken) is not an error. Test NB_FILE: ((Integer) globalMap.get("tFTPRename_1_NB_FILE")) < 1 for one expected file.

  1. Déposez le tFTPRename depuis la famille Internet › FTP de la palette. Drop the tFTPRename from the Internet › FTP family of the palette.
  2. Cochez Utiliser une connexion existante et choisissez le tFTPConnection, ou renseignez le serveur comme dans un tFTPConnection. Check Use an existing connection and choose the tFTPConnection, or fill in the server as in a tFTPConnection.
  3. Donnez le Répertoire distant, puis une ligne de Fichiers par fichier : Nom de fichier et Nouveau nom. Give the Remote directory, then one row of Files per file: Filename and New name.
  4. En FTP, choisissez Écraser le fichier si le nouveau nom peut déjà exister (voir Si le nouveau nom existe). Over FTP, choose Overwrite file if the new name may already exist (see If the new name exists).

Paramètres simplesBasic settings

Les libellés sont ceux de l'onglet Composant ; le nom technique, en gris, est celui du paramètre dans le fichier du job. Les champs de texte sont des expressions Java. Labels are those of the Component tab; the technical name, in grey, is the parameter name in the job file. Text fields are Java expressions.

La connexionThe connection

Utiliser une connexion existante décochée, le composant ouvre sa propre connexion, la ferme à la fin, et montre les réglages du serveur. Ce sont, avec les mêmes libellés, défauts et conditions d'affichage, ceux du tFTPConnection, décrits sur sa page : Type de propriété, Hôte ("localhost"), Port (21, 990 en FTPS, à passer à 22 en SFTP), Utilisateur ("anonymous"), Mot de passe, Support de SFTP, Support de FTPS, la Méthode d'authentification SFTP et sa clé, le magasin de clés et le Mode de sécurité FTPS, le Mode de connexion (Passif), l'encodage, et en paramètres avancés le proxy Socks, la protection du canal FTPS, le délai et le parsage strict. With Use an existing connection unchecked, the component opens its own connection, closes it at the end, and shows the server settings. They are, with the same labels, defaults and display conditions, those of the tFTPConnection, described on its page: Property Type, Host ("localhost"), Port (21, 990 over FTPS, to be set to 22 over SFTP), Username ("anonymous"), Password, SFTP Support, FTPS Support, the SFTP Authentication method and its key, the FTPS keystore and Security Mode, the Connection Mode (Passive), the encoding, and as advanced settings the Socks proxy, the FTPS channel protection, the timeout and the strict parsing.

Seules différences : les noms techniques USERNAME et PASSWORD (USER et PASS dans le tFTPConnection), le défaut du Mot de passe, "suomynona" au lieu d'un texte vide, et la Méthode d'authentification, affichée dès que Support de SFTP est coché, même avec une connexion existante (où elle ne sert pas). Le paramètre avancé Ignorer les erreurs à la fermeture (FTP) est propre au composant. Only differences: the technical names USERNAME and PASSWORD (USER and PASS in the tFTPConnection), the default of the Password, "suomynona" instead of an empty text, and the Authentication method, shown as soon as SFTP Support is checked, even with an existing connection (where it is not used). The advanced setting Ignore Failure At Quit (FTP) belongs to the component.

ParamètreSetting DéfautDefault VisibleShown Description
Utiliser une connexion existanteUse an existing connectionUSE_EXISTING_CONNECTION NonNo ToujoursAlways Cochée : le composant prend la connexion ouverte par le tFTPConnection choisi, sans l'ouvrir ni la fermer ; le protocole est celui de ce tFTPConnection. Checked: the component takes the connection opened by the chosen tFTPConnection, without opening or closing it; the protocol is the one of that tFTPConnection.
Liste des composantsComponent listCONNECTION videempty Utiliser une connexion existante cochéeUse an existing connection checked Le tFTPConnection du job dont la connexion est utilisée. The tFTPConnection of the job whose connection is used.
Répertoire distantRemote directoryREMOTEDIR "." ToujoursAlways Dossier de départ des noms. En FTP, le composant s'y place (CWD) avant le premier renommage, connexion propre ou existante ; s'il n'existe pas, il s'arrête dans tous les cas (Failed to change remote directory. 550 …). En SFTP, il est mis devant chaque nom et chaque nouveau nom ("/work" + "/" + nom) ; absent, le premier renommage échoue (2: No such file). Starting folder of the names. Over FTP, the component goes into it (CWD) before the first renaming, own or existing connection; if it does not exist, it stops in all cases (Failed to change remote directory. 550 …). Over SFTP, it is put in front of each name and each new name ("/work" + "/" + name); missing, the first renaming fails (2: No such file).
Déplacer vers le répertoire courantMove to the current directoryMOVE_TO_THE_CURRENT_DIRECTORY OuiYes Connexion existante FTP ou FTPSExisting FTP or FTPS connection Cochée : la connexion partagée reste dans le Répertoire distant après le composant. Décochée : le composant note le dossier courant de la connexion et y revient à la fin. Dans les deux cas, il travaille dans le Répertoire distant. Checked: the shared connection stays in the Remote directory after the component. Unchecked: the component notes the current folder of the connection and goes back to it at the end. In both cases, it works in the Remote directory.
Écraser le fichierOverwrite fileOVERWRITE Toujoursalways FTP sans connexion existante, ou connexion existante FTP ou FTPSFTP without an existing connection, or existing FTP or FTPS connection Que faire quand le Nouveau nom existe déjà : Toujours (always), Jamais (never), taille différente (size_differ). Pris en compte en FTP seulement : ignoré en FTPS, même quand il est affiché (connexion existante FTPS). Voir Si le nouveau nom existe. What to do when the New name already exists: always (always), never (never), size different (size_differ). Taken into account over FTP only: ignored over FTPS, even when shown (existing FTPS connection). See If the new name exists.
FichiersFilesFILES videempty ToujoursAlways Deux colonnes, des expressions Java : Nom de fichier (FILEMASK) et Nouveau nom (NEWNAME). Un nom exact, pas un masque (voir Pièges pour les jokers). Le Nouveau nom peut contenir un dossier, qui doit exister : "archive/report.csv" déplace le fichier dans le sous-dossier archive du Répertoire distant. Un nom qui commence par / part de la racine en FTP, mais reste sous le Répertoire distant en SFTP. Les lignes sont traitées l'une après l'autre. Two columns, Java expressions: Filename (FILEMASK) and New name (NEWNAME). An exact name, not a mask (see Pitfalls for wildcards). The New name can hold a folder, which must exist: "archive/report.csv" moves the file into the archive sub-folder of the Remote directory. A name starting with / starts from the root over FTP, but stays under the Remote directory over SFTP. The rows are processed one after the other.
Arrêter en cas d'erreurDie on errorDIE_ON_ERROR OuiYes ToujoursAlways En SFTP, un renommage refusé est une erreur : cochée, le job s'arrête ; décochée, le message va sur la sortie d'erreur et la ligne suivante est traitée. En FTP, un renommage refusé par le serveur n'est jamais une erreur (statut File rename fail.) ; la case ne concerne que les erreurs de communication. Over SFTP, a refused renaming is an error: checked, the job stops; unchecked, the message goes to the error output and the next row is processed. Over FTP, a renaming refused by the server is never an error (status File rename fail.); the box only covers communication errors.

Paramètres avancésAdvanced settings

En plus de ceux de la connexion (voir tFTPConnection) : Besides those of the connection (see tFTPConnection):

ParamètreSetting DéfautDefault VisibleShown Description
Ignorer les erreurs à la fermeture (FTP)Ignore Failure At Quit (FTP)IGNORE_FAILURE_AT_QUIT NonNo FTP (sans FTPS ni SFTP), connexion propre ou existanteFTP (neither FTPS nor SFTP), own or existing connection Cochée : une erreur pendant la déconnexion de la connexion propre du composant est ignorée, son message rangé dans ERROR_MESSAGE. Sans effet avec une connexion existante, que le composant ne ferme pas. Checked: an error during the disconnection of the component's own connection is ignored, its message stored in ERROR_MESSAGE. No effect with an existing connection, which the component does not close.

Variables globalesGlobal variables

NB_FILE
Integer, Nombre de fichiers, disponible après le composant : fichiers renommés. null pendant son exécution.Integer, Number of files, available after the component: files renamed. null while it runs.
CURRENT_STATUS
String, Statut, ligne par ligne de Fichiers : No file renamed. au début de chaque ligne, puis File rename OK. ou File rename fail. Une ligne sautée (option Jamais, source absente avec taille différente) garde No file renamed. Après le composant, seule la dernière ligne compte.String, Current Status, row by row of Files: No file renamed. at the start of each row, then File rename OK. or File rename fail. A skipped row (never option, missing source with size different) keeps No file renamed. After the component, only the last row counts.
ERROR_MESSAGE
String : message de la dernière exception (SFTP : No such file, Failure). Jamais rempli par un refus du serveur FTP.String: message of the last exception (SFTP: No such file, Failure). Never filled by a refusal of the FTP server.
((Integer) globalMap.get("tFTPRename_1_NB_FILE"))
((String) globalMap.get("tFTPRename_1_CURRENT_STATUS"))
((String) globalMap.get("tFTPRename_1_ERROR_MESSAGE"))

Si le nouveau nom existeIf the new name exists

Ce que fait le composant, lu dans son modèle, et ce qu'ont donné nos essais : daily.csv (3 octets) renommé en daily_old.csv (14 octets), qui existe déjà. Notre serveur FTP d'essai refuse de renommer vers un fichier existant (550 … File exists.) ; d'autres serveurs le remplacent : c'est le serveur qui décide. What the component does, read in its template, and what our runs gave: daily.csv (3 bytes) renamed to daily_old.csv (14 bytes), which already exists. Our test FTP server refuses to rename onto an existing file (550 … File exists.); other servers replace it: the server decides.

RéglageSetting Ce que fait le composantWhat the component does Lors de nos essaisIn our runs
FTP, Toujours (défaut)FTP, always (default) Envoie RNFR / RNTO sans rien vérifier : « toujours » ne force rien, il laisse faire le serveur.Sends RNFR / RNTO without checking anything: "always" forces nothing, it lets the server act. 550 daily_old.csv: File exists., statut File rename fail., pas d'erreur ; les deux fichiers sont restés.550 daily_old.csv: File exists., status File rename fail., no error; both files stayed.
FTP, JamaisFTP, never Liste le Répertoire distant ; si un fichier y porte le nouveau nom, la ligne est sautée sans message. Un nouveau nom avec dossier ("archive/x.csv") n'est pas vu par cette vérification.Lists the Remote directory; if a file there has the new name, the row is skipped without a message. A new name with a folder ("archive/x.csv") is not seen by this check. Rien envoyé pour daily.csv ; la ligne suivante a été renommée. Avec "archive/report.csv" déjà présent, RNFR / RNTO sont partis quand même.Nothing sent for daily.csv; the next row was renamed. With "archive/report.csv" already there, RNFR / RNTO were sent anyway.
FTP, taille différenteFTP, size different Si la source existe : quand le nouveau nom existe avec une autre taille, il est supprimé (DELE), puis le fichier est renommé ; même taille, le renommage est tenté tel quel. Source absente : ligne sautée sans message.If the source exists: when the new name exists with another size, it is deleted (DELE), then the file is renamed; same size, the renaming is tried as is. Missing source: row skipped without a message. daily_old.csv (14 octets) supprimé, daily.csv renommé. Deux fichiers de 5 octets : 550 … File exists.daily_old.csv (14 bytes) deleted, daily.csv renamed. Two 5-byte files: 550 … File exists.
FTPS Comme Toujours, quel que soit le réglage.Like always, whatever the setting. Renommage simple essayé en FTPS explicite : mêmes commandes qu'en FTP.Plain renaming tried over explicit FTPS: same commands as over FTP.
SFTP Pas de réglage : le renommage est demandé au serveur tel quel.No setting: the renaming is asked of the server as is. daily_old.csv remplacé (3 octets), sans message, statut File rename OK. Le serveur (OpenSSH) a reçu un renommage POSIX, qui remplace la cible.daily_old.csv replaced (3 bytes), without a message, status File rename OK. The server (OpenSSH) received a POSIX renaming, which replaces the target.

Pour ne jamais perdre un fichier, quel que soit le protocole : vérifiez avant avec un tFTPFileExist, ou donnez un nouveau nom unique (date et heure, pid). To never lose a file, whatever the protocol: check beforehand with a tFTPFileExist, or give a unique new name (date and time, pid).

ExemplesExamples

Les sorties sont copiées depuis des exécutions du job (lancé depuis Talaxie, Java 21) contre des serveurs d'essai installés sur le poste : un serveur FTP et FTPS aux réponses de type Unix, et un serveur SFTP (OpenSSH sftp-server). Utilisateur "demo", Répertoire distant "/work", qui contient report.csv, daily.csv, daily_old.csv et un dossier archive ; réglages par défaut sauf mention contraire. Les lignes du journal du serveur montrent les commandes reçues (extraits). Le tJava relié par On Subjob Ok est : The outputs are copied from runs of the job (started from Talaxie, Java 21) against test servers installed on the machine: an FTP and FTPS server with Unix-like replies, and an SFTP server (OpenSSH sftp-server). User "demo", Remote directory "/work", which holds report.csv, daily.csv, daily_old.csv and an archive folder; default settings unless stated otherwise. The lines of the server log show the commands received (excerpts). The tJava connected with On Subjob Ok is:

System.out.println("NB_FILE = " + globalMap.get("tFTPRename_1_NB_FILE"));
System.out.println("CURRENT_STATUS = " + globalMap.get("tFTPRename_1_CURRENT_STATUS"));
System.out.println("ERROR_MESSAGE = " + globalMap.get("tFTPRename_1_ERROR_MESSAGE"));

Renommer un fichier, en FTPRename a file, over FTP

"report.csv" → "report_2026.csv". "report.csv" → "report_2026.csv".

NB_FILE = 1
CURRENT_STATUS = File rename OK.
ERROR_MESSAGE = null
[ftp] 61553 > CWD /work
[ftp] 61553 < 250 Directory successfully changed.
[ftp] 61553 > RNFR report.csv
[ftp] 61553 < 350 Ready for RNTO.
[ftp] 61553 > RNTO report_2026.csv
[ftp] 61553 < 250 Rename successful.

En FTPS explicite, même sortie ; le journal ajoute AUTH TLS, PBSZ 0 et PROT P avant le CWD. Over explicit FTPS, same output; the log adds AUTH TLS, PBSZ 0 and PROT P before the CWD.

Le même, en SFTPThe same, over SFTP

Support de SFTP coché, même ligne : SFTP Support checked, same row:

NB_FILE = 1
CURRENT_STATUS = File rename OK.
ERROR_MESSAGE = null
[sftp] sftp-server: posix-rename old "/work/report.csv" new "/work/report_2026.csv"

Les deux noms sont complétés par le Répertoire distant. Both names are completed with the Remote directory.

Déplacer vers un autre dossierMove to another folder

FTP, deux lignes : "report.csv" → "archive/report.csv", puis "daily.csv" → "/done/daily.csv", le dossier /done n'existant pas. FTP, two rows: "report.csv" → "archive/report.csv", then "daily.csv" → "/done/daily.csv", the /done folder not existing.

NB_FILE = 1
CURRENT_STATUS = File rename fail.
ERROR_MESSAGE = null
[ftp] 63205 > RNFR report.csv
[ftp] 63205 < 350 Ready for RNTO.
[ftp] 63205 > RNTO archive/report.csv
[ftp] 63205 < 250 Rename successful.
[ftp] 63205 > RNFR daily.csv
[ftp] 63205 < 350 Ready for RNTO.
[ftp] 63205 > RNTO /done/daily.csv

Le serveur a refusé le second (550, chemin introuvable) : pas d'erreur, mais le statut final est celui de cette dernière ligne. Une fois /done créé à la racine du serveur, "/done/daily.csv" y a bien déplacé le fichier, hors de /work. En SFTP, "archive/report.csv" a donné le même déplacement, mais "/archive/report.csv" aussi : le serveur a reçu new "/work//archive/report.csv". The server refused the second one (550, path not found): no error, but the final status is the one of this last row. Once /done was created at the root of the server, "/done/daily.csv" did move the file there, out of /work. Over SFTP, "archive/report.csv" gave the same move, but so did "/archive/report.csv": the server received new "/work//archive/report.csv".

Fichier absentMissing file

"missing.csv" → "other.csv", Arrêter en cas d'erreur coché (défaut). En FTP : "missing.csv" → "other.csv", Die on error checked (default). Over FTP:

NB_FILE = 0
CURRENT_STATUS = File rename fail.
ERROR_MESSAGE = null
[ftp] 50893 > RNFR missing.csv
[ftp] 50893 < 550 missing.csv: No such file or directory.

Le job continue. En SFTP, même ligne (nom du job remplacé par MyJob, pile abrégée) : The job goes on. Over SFTP, same row (job name replaced with MyJob, shortened stack):

Exception in component tFTPRename_1 (MyJob)
2: No such file
	…

Le job s'arrête (code 1). Case décochée, et "report.csv" → "report_2026.csv" en deuxième ligne : The job stops (code 1). Box unchecked, and "report.csv" → "report_2026.csv" as second row:

NB_FILE = 1
CURRENT_STATUS = File rename OK.
ERROR_MESSAGE = No such file
No such file

Le dernier No such file vient de la sortie d'erreur, écrit sans retour à la ligne. La deuxième ligne a été renommée. The last No such file comes from the error output, written without a line break. The second row was renamed.

Le nouveau nom existe : JamaisThe new name exists: never

FTP, Écraser le fichier à Jamais, deux lignes : "daily.csv" → "daily_old.csv" (existe), "report.csv" → "report_2026.csv". FTP, Overwrite file set to never, two rows: "daily.csv" → "daily_old.csv" (exists), "report.csv" → "report_2026.csv".

NB_FILE = 1
CURRENT_STATUS = File rename OK.
ERROR_MESSAGE = null
[ftp] 49795 > LIST
[ftp] 49795 > LIST
[ftp] 49795 > RNFR report.csv
[ftp] 49795 < 350 Ready for RNTO.
[ftp] 49795 > RNTO report_2026.csv
[ftp] 49795 < 250 Rename successful.

Une liste par ligne ; aucun RNFR pour daily.csv, sauté sans message. One listing per row; no RNFR for daily.csv, skipped without a message.

Le nouveau nom existe : taille différenteThe new name exists: size different

FTP, trois lignes : "daily.csv" (3 octets) → "daily_old.csv" (14 octets), "same.csv" → "same_old.csv" (5 octets chacun), "missing.csv" → "other.csv". FTP, three rows: "daily.csv" (3 bytes) → "daily_old.csv" (14 bytes), "same.csv" → "same_old.csv" (5 bytes each), "missing.csv" → "other.csv".

NB_FILE = 1
CURRENT_STATUS = No file renamed.
ERROR_MESSAGE = null
[ftp] 57258 > LIST daily.csv
[ftp] 57258 > LIST daily_old.csv
[ftp] 57258 > DELE daily_old.csv
[ftp] 57258 < 250 Delete operation successful.
[ftp] 57258 > RNFR daily.csv
[ftp] 57258 < 350 Ready for RNTO.
[ftp] 57258 > RNTO daily_old.csv
[ftp] 57258 < 250 Rename successful.
[ftp] 57258 > LIST same.csv
[ftp] 57258 > LIST same_old.csv
[ftp] 57258 > RNFR same.csv
[ftp] 57258 < 350 Ready for RNTO.
[ftp] 57258 > RNTO same_old.csv
[ftp] 57258 < 550 same_old.csv: File exists.
[ftp] 57258 > LIST missing.csv

L'ancien daily_old.csv est perdu : il a été supprimé avant le renommage. Le statut final, No file renamed., est celui de la ligne missing.csv, sautée. The old daily_old.csv is lost: it was deleted before the renaming. The final status, No file renamed., is the one of the missing.csv row, skipped.

Avec un tFTPConnectionWith a tFTPConnection

FTP, Utiliser une connexion existante coché, "report.csv" → "report_2026.csv". Le tJava affiche aussi le dossier courant de la connexion partagée. Déplacer vers le répertoire courant coché (défaut) : FTP, Use an existing connection checked, "report.csv" → "report_2026.csv". The tJava also prints the current folder of the shared connection. Move to the current directory checked (default):

NB_FILE = 1
CURRENT_STATUS = File rename OK.
ERROR_MESSAGE = null
connection directory after tFTPRename_1: /work

Case décochée, même renommage, et la connexion est revenue à / (le journal montre PWD, CWD /work, le renommage, puis CWD /). Box unchecked, same renaming, and the connection went back to / (the log shows PWD, CWD /work, the renaming, then CWD /).

Les erreursErrors

Relevées lors de nos essais, Arrêter en cas d'erreur coché. Une exception arrête le job avec le code 1, sauf si un lien On Component Error ou On Subjob Error la reprend. Les erreurs de connexion sont celles du tFTPConnection. Seen in our runs, Die on error checked. An exception stops the job with code 1, unless an On Component Error or On Subjob Error link takes it over. The connection errors are those of the tFTPConnection.

CasCase FTP / FTPS SFTP
Fichier absentMissing file aucune erreur : File rename fail., NB_FILE inchangéno error: File rename fail., NB_FILE unchanged 2: No such file
Dossier d'arrivée absent ("nodir/report.csv")Target folder missing ("nodir/report.csv") 2: No such file
Nouveau nom = un dossier existantNew name = an existing folder 4: Failure
Nouveau nom = un fichier existantNew name = an existing file selon Écraser le fichier et le serveur (voir plus haut), sans erreurdepending on Overwrite file and the server (see above), without an error remplacé, sans erreurreplaced, without an error
Répertoire distant absentRemote directory missing java.lang.RuntimeException: Failed to change remote directory. 550 /nope: No such directory. (même case décochée)(even box unchecked) 2: No such file, au premier renommage2: No such file, at the first renaming
Joker qui désigne plusieurs fichiers ("d*.csv")Wildcard that matches several files ("d*.csv") aucune erreur : nom envoyé tel quel, refuséno error: name sent as is, refused 4: /work/d*.csv is not unique: [/work/daily.csv, /work/daily_old.csv]

PiègesPitfalls

FTP : un échec ne se voit pasFTP: a failure does not show

Fichier absent, nom déjà pris, dossier d'arrivée inconnu : le serveur refuse, le composant note File rename fail. et continue, même avec Arrêter en cas d'erreur coché. Rien n'apparaît dans la console (sauf si Log4j est activé dans le projet). Testez NB_FILE après le composant. Missing file, name already taken, unknown target folder: the server refuses, the component notes File rename fail. and goes on, even with Die on error checked. Nothing appears in the console (unless Log4j is activated in the project). Test NB_FILE after the component.

SFTP : la cible existante est remplacéeSFTP: the existing target is replaced

Aucune option ne protège un fichier qui porte déjà le nouveau nom : avec notre serveur SFTP (OpenSSH), il a été remplacé sans message. Selon le serveur, le renommage peut aussi être refusé. Vérifiez avant (tFTPFileExist) ou choisissez un nom unique. No option protects a file that already has the new name: with our SFTP server (OpenSSH), it was replaced without a message. Depending on the server, the renaming may also be refused. Check beforehand (tFTPFileExist) or choose a unique name.

Des jokers dans le nomWildcards in the name

Le Nom de fichier n'est pas un masque. En FTP, "rep*.csv" a été envoyé tel quel (RNFR rep*.csv) et refusé. En SFTP, le client du job l'a résolu lui-même : report.csv, seul fichier correspondant, a été renommé ; "d*.csv", qui désignait deux fichiers, a échoué (is not unique). Pour renommer un lot de fichiers, listez-les (tFTPFileList) et renommez-les un par un par un lien Iterate. The Filename is not a mask. Over FTP, "rep*.csv" was sent as is (RNFR rep*.csv) and refused. Over SFTP, the client of the job resolved it itself: report.csv, the only matching file, was renamed; "d*.csv", which matched two files, failed (is not unique). To rename a batch of files, list them (tFTPFileList) and rename them one by one through an Iterate link.

Un nouveau nom absolu n'a pas le même sensAn absolute new name does not mean the same

"/done/daily.csv" désigne /done à la racine du serveur en FTP, mais /work/done en SFTP (le Répertoire distant est toujours ajouté devant). Un job qui passe d'un protocole à l'autre doit utiliser des noms relatifs au Répertoire distant. "/done/daily.csv" means /done at the root of the server over FTP, but /work/done over SFTP (the Remote directory is always put in front). A job that switches from one protocol to the other must use names relative to the Remote directory.

taille différente supprime d'abordsize different deletes first

Le fichier qui porte le nouveau nom est supprimé avant le renommage. Si celui-ci échoue ensuite (droits, coupure), il ne reste que le fichier source, sous son ancien nom. The file that has the new name is deleted before the renaming. If the renaming then fails (rights, cut), only the source file is left, under its old name.

Jusqu'à Talaxie 9.0.6 : cases affichées à tortUp to Talaxie 9.0.6: boxes shown wrongly

Les conditions d'affichage qui dépendent du tFTPConnection choisi ne sont pas évaluées : Déplacer vers le répertoire courant, Écraser le fichier et Ignorer les erreurs à la fermeture (FTP) sont affichés dans tous les cas, en SFTP compris, où ils n'ont aucun effet. La colonne Visible ci-dessus donne l'affichage du Studio. À partir de Talaxie 9.0.7, ces conditions lisent le tFTPConnection choisi, et les cases s'affichent comme dans le Studio. The display conditions that depend on the chosen tFTPConnection are not evaluated: Move to the current directory, Overwrite file and Ignore Failure At Quit (FTP) are shown in all cases, over SFTP included, where they have no effect. The Shown column above gives the display of the Studio. From Talaxie 9.0.7, these conditions read the chosen tFTPConnection, and the boxes are shown as in the Studio.

Voir aussiSee also