#1
|
|||
|
|||
Problems with FTP
I'm trying to do an FTP get with wild cards (in binary mode) but I get an error:
Error transferring file(s) '/mydir/myfile*': Unable to access file on server (/mydir/myfile*: No such file or directory. ) Step 'Get files' failed There are only two files myfile.so and myfiled.so If I do them as two separate steps it works fine. Any ideas what is going wrong? |
#2
|
|||
|
|||
There's a bug in the FTP action when dealing with wildcards: it only handles them properly when the first character in the Local file field (when putting) or the Remote file field (when getting) is a wildcard character. Otherwise, it treats the filename as a single file to be processed, resulting in an error. Here is an update with a fix for this: http://www.kinook.com/Download/VisBuildNet.zip. Extract it to your VBP install path (close VBP first).
|
#3
|
|||
|
|||
Thanks - that's fixed it
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
The fix described is in v5.6 and later.
|
#6
|
|||
|
|||
Quote:
I cannot define a remote directory in screen FTP - Transfer - Remote file (when getting) or Local file (when putting) and use a * or *.* for a wildcard of 'all files'. Works fine when I define an individual file. |
#7
|
|||
|
|||
There haven't been any related bugs reported or fixed in v5 since the 5.6 release, and we are no longer supporting, enhancing or making changes to v5.x.
But a simple test w/ the attached sample works as expected here in v5.6: Connecting to FTP server 'ftp.microsoft.com' on port 21 Transferring index.txt Transferring README.TXT 2 file(s) successfully transferred Maybe something isn't configured properly in your step? |
#8
|
|||
|
|||
Well, your test file works.
But in my case, if I provide folder\* as the Get File, it returns \\DestinationFolder\ <- folder/* Error transferring file '': The specified directory could not be found (Type set to A.) Step 'FTP' failed Build ended. If I provide folder\file.aspx as the Get File, it succeeds. \\DestinationFolder\ <- folder/file.aspx Transferring file.aspx 1 file(s) successfully transferred Build successfully completed. |
#9
|
|||
|
|||
It appears that the server is actually reporting the existence of a file with no name and an error occurs when VBP tries to transfer it.
|
#10
|
|||
|
|||
Quote:
|
#11
|
|||
|
|||
Perhaps *.aspx
|
#12
|
|||
|
|||
Nope. Is there an escape character of some sort that would translate * correctly as a wildcard and not an actual file name?
|
#13
|
|||
|
|||
Since v5.6, a * in the Local field (for a put) or the Remote field (for a get) will be treated as a wildcard. I don't believe that's the issue here. But again, VBP v5 is no longer a supported product.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|