Exclude subdirectories from FTP pickup

Post Reply
davet2_1
Newbie
Posts: 4
Joined: Thu Sep 29, 2016 10:42 am

Exclude subdirectories from FTP pickup

Post by davet2_1 »

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.
tz8
Member
Posts: 84
Joined: Mon Aug 13, 2012 12:56 pm

Re: Exclude subdirectories from FTP pickup

Post by tz8 »

set the FTP directory to /DAVE
set "Process these Folders" to "No Folders"
set the "Subfolder Levels" to 0

this should do the trick ;)
davet2_1
Newbie
Posts: 4
Joined: Thu Sep 29, 2016 10:42 am

Re: Exclude subdirectories from FTP pickup

Post by davet2_1 »

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.
User avatar
TheCaptain
Member
Posts: 62
Joined: Mon Jan 18, 2016 4:22 pm
Location: London

Re: Exclude subdirectories from FTP pickup

Post by TheCaptain »

Do you have the correct permissions for Switch to Read / Write to the .FTP?
davet2_1
Newbie
Posts: 4
Joined: Thu Sep 29, 2016 10:42 am

Re: Exclude subdirectories from FTP pickup

Post by davet2_1 »

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.
User avatar
TheCaptain
Member
Posts: 62
Joined: Mon Jan 18, 2016 4:22 pm
Location: London

Re: Exclude subdirectories from FTP pickup

Post by TheCaptain »

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)
davet2_1
Newbie
Posts: 4
Joined: Thu Sep 29, 2016 10:42 am

Re: Exclude subdirectories from FTP pickup

Post by davet2_1 »

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.
Post Reply