Page 1 of 1

Directory List

Posted: Tue Sep 17, 2013 7:05 pm
by MDeVore
I'm familiar with the fileList task, but is there anyway to do something similar that could instead print the existing folders within a path?

Re: Directory List

Posted: Wed Sep 18, 2013 8:23 am
by Support_Rick
You're going to need to be a bit more specific on what you're looking for.

You have the option to utilize just the Path attribute of a file (as in FileList:path) which will give you the folder structure up to and including the folder in which the designated file resides.

Not sure what you mean by "print the existing folders within a path".....

Re: Directory List

Posted: Wed Sep 18, 2013 1:43 pm
by MDeVore
Sorry. Say I have a folder path of c:/libraries/documents/data/home and I wanted to list all of the folders within that data folder. I understand that I could use file list to see the files within data, but is there a way to have GA list "home" and any other folder that are within data?

Re: Directory List

Posted: Wed Sep 18, 2013 4:26 pm
by MDeVore
Say, if I had a path like C:\Program Files\Common Files\Adobe\Acrobat\
I'm looking for a way to list Acrobat and any other folders within the Adobe directory.

Re: Directory List

Posted: Wed Sep 18, 2013 5:56 pm
by Support_Rick
At this time... we do not have a "CreateFolders" task or attribute.

You can take the "Path" attribute and parse out the Folder Structure, but that would be the best way possible.

Re: Directory List

Posted: Wed Sep 18, 2013 8:50 pm
by MDeVore
Sorry about the double post. Hadn't been around in a while and forgot posts needed approval, thought I had previewed the original post and forgot to actually submit it.

And thanks for the information.

Re: Directory List

Posted: Wed Sep 18, 2013 9:23 pm
by MDeVore
So let me give you the details on exactly what I'm trying to do and see if maybe there's a more elegant solution than how I was trying to approach it. I have a large number of files coming into one location. The files are identified by a series of numbers at the start of the file name.

1234_file_name.pgp

Currently I have one job setup that will make a variable from the numbers in that file name and create a new folder path, using those digits, to decrypt the file to.

/1234/folder/folder/folder/1234_file_name.txt

However there's likely going to need to be a second move afterwards, that goes to a path with a different folder structure. Here the folders are setup with the series of numbers, followed by the client name.

/1234_clientNameA/folder/folder/folder/
/5678_clientNameB/folder/folder/folder/

I'm looking for a way to be able to take a file named "5678_file_name.txt" and move it to that /5678_clientNameB/ folder, without prior knowledge of what the text in that client name is. I'm going in only knowing that the folder name begins with 5678.