SOLVED
File Copy and Move tool
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Kinetic_analytics
11 - Bolide
‎08-02-2022
01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello:
Dear great people. Is there any Alteryx tool for copying files and posting into a folder in at Alteryx workflow?
Thanks
Solved! Go to Solution.
Labels:
- Labels:
- Workflow
6 REPLIES 6
17 - Castor
‎08-02-2022
01:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Kinetic_analytics you can use the Run Command tool or use a combination of Blob Input and Blob Output tools for this challenge.
‎08-02-2022
01:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks. Do you have any example for me to tackle the situation?
binuacs
21 - Polaris
‎08-02-2022
03:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Kinetic_analytics The below posts might be helpful for your use case
https://community.alteryx.com/t5/Alteryx-Designer-Discussions/File-Copying-and-Moving/td-p/592216
amirsemsar
8 - Asteroid
‎02-20-2023
11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use python both to MOVE and COPY simply replace copy with move.
from ayx import Alteryx
import shutil
import os
import pandas as pd
def archiving(a):
source=a['filepath'].tolist()
destination=a['destination'].iloc[0]
destination=destination.replace('\\','/')
source=[shutil.copy(each,destination) for each in source]
dicty={"newfiles":[destination+os.path.basename(each) for each in source]}
output=pd.DataFrame.from_dict(dicty)
Alteryx.write(output,1)
df=Alteryx.read("#1")
archiving(df)
16 - Nebula
‎02-20-2023
12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here's a related Idea, that could benefit from a few more Likes:
File Management tools (copy, rename, delete)
‎02-21-2023
06:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you @amirsemsar
