![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: FTP folder delete Topic Summary: Created On: 10/26/2015 12:13 PM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thanks. That works. | ||||||||||
![]() |
||||||||||
Hello there,
After I download sub folders from an FTP folder, I then want to delete those sub folders. Currently, I am able to download the sub folders and their contents while maintaining the folder structure. When I delete, it only deletes the files in the sub folders. I want the entire sub folders gone. Any help is appreciated. Thanks, Avtar
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hello,
Would it be possible to post your task?
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
Here are the steps for ftp download and delete:
|
||||||||||
|
||||||||||
![]() |
||||||||||
Let us try again:
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
||||||||||
|
||||||||||
![]() |
||||||||||
Hello,
The task you have created deletes files. If you would like to delete a folder you will need to use a "FTP Remove Folder". Please make the change and let us know if that works for you.
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
I know that it only deletes files, that is what I mentioned in my original post.
How do I get a list of all the folder names on the FTP so that I can iterate through the list and delete them one by one.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hello,
Give the following code (below) a try. If the %dstest.FTPFileType% = 1 it is a file. If %dstest.FTPFileType% = 0 it is a folder. You will need to add logic but the following code will get you a name and tell you if its a file or folder.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
Thanks. That works.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hello,
Thank you for the update.
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
AutoMate Discussion
» AUTOMATE » AutoMate 7
»
FTP folder delete
|
![]() |
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.