Skip to content

Directory List

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
  • MDeVore Offline
  • Posts: 8
  • Joined: Tue Aug 07, 2012 3:22 pm

Directory List

Post 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?
  • Support_Rick Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: Directory List

Post 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".....
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
  • MDeVore Offline
  • Posts: 8
  • Joined: Tue Aug 07, 2012 3:22 pm

Re: Directory List

Post 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?
  • MDeVore Offline
  • Posts: 8
  • Joined: Tue Aug 07, 2012 3:22 pm

Re: Directory List

Post 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.
  • Support_Rick Offline
  • Support Specialist
  • Posts: 590
  • Joined: Tue Jul 17, 2012 2:12 pm
  • Location: Phoenix, AZ
  • Contact:

Re: Directory List

Post 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.
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
  • MDeVore Offline
  • Posts: 8
  • Joined: Tue Aug 07, 2012 3:22 pm

Re: Directory List

Post 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.
  • MDeVore Offline
  • Posts: 8
  • Joined: Tue Aug 07, 2012 3:22 pm

Re: Directory List

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