I'm trying to pick up from a directory on an ftp server but not process any sub-directories or their contents, just the files in the directory itself.
Other forum postings suggest to put in the names of the subdirectories in the Adjusted by (rule 1) section of the FTP receive component. But the only option I can find is to use a folder pattern, and that doesn't seem to work for me.
The specifics are:
Ftp structure:
/DAVE/AAA
/DAVE/BBB
/DAVE/BBB/CCC
I only want to pick up files that are residing in /DAVE and not in the AAA or BBB directories.
Is what I want to do possible, and if so please point me in the right direction?
Thanks.
Exclude subdirectories from FTP pickup
Re: Exclude subdirectories from FTP pickup
set the FTP directory to /DAVE
set "Process these Folders" to "No Folders"
set the "Subfolder Levels" to 0
this should do the trick
set "Process these Folders" to "No Folders"
set the "Subfolder Levels" to 0
this should do the trick

Re: Exclude subdirectories from FTP pickup
Yeah, I thought that would be the way to do it, but it doesn't work. It doesn't remove any files in the /DAVE folder.
- TheCaptain
- Member
- Posts: 62
- Joined: Mon Jan 18, 2016 4:22 pm
- Location: London
Re: Exclude subdirectories from FTP pickup
Do you have the correct permissions for Switch to Read / Write to the .FTP?
Re: Exclude subdirectories from FTP pickup
The permissions are correct - I can remove all files and subdirectories if I don't have these settings. As soon as I set them as suggested nothing at all happens.
- TheCaptain
- Member
- Posts: 62
- Joined: Mon Jan 18, 2016 4:22 pm
- Location: London
Re: Exclude subdirectories from FTP pickup
In theory the method mentioned above should be adequate.
Have you tried Adjusting by rule : Including folders named
Whereby you include or exclude specific folders that you are after?
(Maybe drop a screengrab)
Have you tried Adjusting by rule : Including folders named
Whereby you include or exclude specific folders that you are after?
(Maybe drop a screengrab)
Re: Exclude subdirectories from FTP pickup
Ok, I worked it out now...
Subfolder levels - 1
Process these folders - All Folders
Adjusted by (rule 1) - Excluding folders not named
Folder name - DAVE*
on levels - 1
Nesting - Exclude nested subfolders as well
It took a lot of trial and error to get this to work. Maybe it'll help someone else out in the future.
Subfolder levels - 1
Process these folders - All Folders
Adjusted by (rule 1) - Excluding folders not named
Folder name - DAVE*
on levels - 1
Nesting - Exclude nested subfolders as well
It took a lot of trial and error to get this to work. Maybe it'll help someone else out in the future.