Hello.Does anyone know a solution on how to grab a file from FTP using wildcard along the lines offilename*.txt
We receive a daily file drop to our FTP with a timestamp attached to the end of the filename.It would be helpful if we can set up a workspace that grabs the file using partial filename only.This wildcard works for the folders on a local machines,but does not work for us on an FTP.
Any helps will be greatly appreciated.
Sorry if this is a duplicate of https://knowledge.亚搏在线safe.com/questions/34998/ftpcaller-download-file-higher-level-direcotory.html,but that's an old question and the answer didn't work for the original poster and I'm having the same problem.
I'm trying to use FTPCaller to grab files from a subfolder of a server.The home folder of my user is a different subfolder so I need to go up a level to get to where I want to go.
Server address: ftp://ftp.os.uk
/
--from-os (where I need to be)
--to-os (home folder)
I've tried ftp://ftp.os.uk/../from-os/ and this works fine in FileZilla but I get an Access Denied error in FME.ftp://ftp.os.uk/ successfully lists contents of the to-os folder and I have tried creating a subfolder and ftp://ftp.os.uk/Test successfully connects to to-os/Test,but nothing I've tried will get me back to the root level.
Access denied is a red herring as I have permissions for the root folder,can do it fine in FileZilla and I still get access denied if I put a path in that doesn't exist.
If anybody has suggestions of what I might be doing wrong I'd be very grateful,otherwise I think this must be a bug in FTPCaller.
Thanks
Tom
Hello All,
I am posting this question to try to gain an in-depth understanding of the functionality of FTPCaller vs SystemCaller.
I designed a script that used SystemCaller to call on CoreFTP in order to upload and overwrite a file to a certain site and log the results in a text document.
This is the SystemCaller command:
""C:\Program Files\CoreFTP\Coreftp.exe" -O -u @Value(file_path) @Value(site_command) -log "@Value(routinglogdirectory)@Value(_rootname).log"
命令成功地工作。It took 12 seconds to run.
I switched to an FTPCaller to run the same function.
The time was reduced to 1 second.
Just for my understanding,I am wondering what is FTPCaller doing differently in the background?Would love to hear some insights from FME.
Thanks,
Fariya
My case is similar with this case ‘' Deleting files from FTP - no errors inWorkSpace but files not deleted‘' but a suggestedsolution didn't work for me.
I have problem with FTPCallerwhen I try to delete oldest files on an FTP server.
The URL is the Full path andpoint to the specified files (remote file).See the transformer settingparameters screen shoot bellow.
But after a run of theworkbench,the translation log on FME show that these files has been deletedand everything seems good,as you can see bellow (URLs paths here areschematized based on my real data URLs configuration,Sorry,Confidentiality!!!!),but the files are not physically deleted on my FTP server.
The same user name works wellwhen I manually delete the file using Filezilla and WinSCP
I have tried variousparameters setting,no solution fund yet.
Translation Log (extract)
12:32:41| 5.4|0.0|INFORM|FTPCaller_OldFilesDeleter(FTPFactory): FTP: Deleted file 'https://myftpsite/_TestForDataFolders/ProductFolder/ProductName_WKww_yy.iso',total time: '0.531 seconds'
5.5|0.0|INFORM|FTPCaller_OldFilesDeleter(FTPFactory): FTP: Deleted file 'https://myftpsite/_TestForDataFolders/ProductFolder/ProductName_WKww_yy.iso.sha1','total time: '0.015 seconds'
Any Suggestions ?
Thanks In advance for yourhelp
Hi,
As far as I can see,it's not possible to open a FTP based dataset directly in a reader (MapInfo TAB) ?
And FTPCaller only allows a single file to be downloaded at any time ?
I have multiple folders with multiple datasets (consisting of multiple files) to import,and doesn't want to do this one file at a time.
The optimal solution would be to open the datasets with a wildcard directly in a reader.Just like how you can within a ZIP.
How to proceed ?
Cheers.
Hello,
I am trying to run a simple FTP Upload operation by calling coreFTP using SystemCaller.
This is the command I am using:
"C:\Program Files\CoreFTP\Coreftp.exe" -s ftp://TESTUSER:TEST_PASS44@pvftp.ftpsite.ca -u 'C:\Users\User1\Desktop\testupload.txt' -log C:\Users\User1\Desktop\temp.log
This works fine in command prompt but I can't run the same code using systemCaller.I keep getting an error that says that the file is not found.What am I doing wrong here?Any help will be appreciated.Thanks!
Edit: I did a few tests and found out that if I take the single or double quotes off the name of the upload file,它在SystemCaller工作。But that fails for file paths that have spaces in them.Trying to put % instead of spaces (I found that as a suggestion) does not resolve the issue.Any thoughts?Thanks
We want to be able to monitor an open FTP service but the Publication Service requires a user?
Hi,
i have use a creator for initial and a ftp caller to upload a zipfile.But if the file was uploaded from the script to the ftp-server they have randomly unspedified names without expression.
Z.B.ftphJ32k
Whats the problem?
It would be helpful if FME Server 2017 had an SFTP Watcher.Currently the regular FTP Watcher does not support SFTP.I am aware that the Notification Service supports SFTP subscriptions but currently in 2017.0.1.1 there is no corresponding SFTP publication option.
I have been trying to get the FTPCaller transformer to upload data to a sftp site.I'm afraid everything ends up in the
Hi,
The raw text string that we get back from the FTPCaller at the moment is hard to process.When selecting Download to an Attribute,it would be cool if you could select the response type to JSON or XML instead.
I'm using the FTPCaller to try and delete files on an FTP server.The translation log says "FTP: Deleted file 'ftp://
The FTP client shows dfrw permissions for the file and I can delete it in the FTP client.
I've tried using upper and lower case versions of the file name with the same result.
Any ideas?
OK I give up - help me!
This is my first attempt to use the PythonCaller (since FTPCaller can't yet download directories or accept wildcards).I've cobbled together some Python to retrieve a directory listing from an FTP site which I want to output (probably as a list) so I can generate the name of the file I want to download and pass it to FTPCaller.
I've done a whole lot of Googling but I can't fix this error on the feature.setAttribute line:
2016-10-12 17:46:48| 1.9| 0.1|WARN |Python Exception
2016-10-12 17:46:48| 1.9| 0.0|WARN |Traceback (most recent call last):
File "
TypeError: not all arguments converted during string formatting
2016-10-12 17:46:48| 1.9| 0.0|ERROR |Error encountered while calling method `input'
2016-10-12 17:46:48| 1.9| 0.0|FATAL |f_32(PythonFactory): PythonFactory failed to process feature
import fmeimport fmeobjectsimport ftplib# Template Function interface:# When using this function,make sure its name is set as the value of# the 'Class or Function to Process Features' transformer parameterdef processFeature(feature): pass# Template Class Interface:# When using this class,make sure its name is set as the value of# the 'Class or Function to Process Features' transformer parameterclass GetCSVs(object): def __init__(self): CSVlist = [] def input(self,feature): ftp = ftplib.FTP("REDACTED") ftp.login("REDACTED","REDACTED") ftp.cwd("REDACTED") try: CSVlist = ftp.nlst() except ftplib.error_perm,resp: if str(resp) == "550 No files found": print "No files found" else: raise ftp.quit() for i in enumerate(CSVlist): feature.setAttribute('_list_CSVs{%d}' % i) def close(self): self.pyoutput(feature)
screen-shot-2016-09-15-at-115003-am.pngscreen-shot-2016-09-15-at-115019-am.png
FTP Caller causes URL using bad/illegal format or missing URL.I am trying to upload a file to my ftp server but keep getting this error.Attached are the screen shots of my configurations.I have tried various different possibilities but no luck.I have no trouble uploading file to my ftp server through command line.Here is thelog.txt
Variations I have tried (It can connect but says the url is bad!Because if i put bad username password etc I just get can't connect or get bad domain name error):
ftp://dev-gismap02.flysfo.com/
ftp://dev-gismap02.flysfo.com/home/abhandari/
ftp://dev-gismap02.flysfo.com
ftp://dev-gismap02.flysfo.com/home/abhandari
ftp://x.x.x.x/
ftp://x.x.x.x/home/abhandari/
Is it possible to download (and upload) a complete folder (including all subfolders and files) from a FTP-server.