Add action (Rename file)
Moderator: Martin
Add action (Rename file)
Hi, I have a problem. I'm working with files and I was wondering if could you add a new action.
- Rename File
- Rename File
Re: Add action (Rename file)
Hi,
You can use action Move Files to rename a file.
Regards,
Martin
You can use action Move Files to rename a file.
Regards,
Martin
Re: Add action (Rename file)
How can I rename a set of files if I don't know the file names but only the directory where those files will be stored?
It's possible to use some wildcard?
Thank you
It's possible to use some wildcard?
Thank you
Re: Add action (Rename file)
You can use the action Init Variable File List (which supports wildcards) to store the names of the files in a list and then iterate through the list and rename those files.wfrcrd wrote:How can I rename a set of files if I don't know the file names but only the directory where those files will be stored?
It's possible to use some wildcard?
Re: Add action (Rename file)
Thank you for the answer but I'm not good to use variables, and I'm a very beginner ,may I ask you some more help?kintrupf wrote:You can use the action Init Variable File List (which supports wildcards) to store the names of the files in a list and then iterate through the list and rename those files.wfrcrd wrote:How can I rename a set of files if I don't know the file names but only the directory where those files will be stored?
It's possible to use some wildcard?
I have a trigger wich works "file observer" and the I set the action Init variable list as you can see on the image.
What I should expect? A file in that location called "source.tx(t) (it miss the last t).
I can't find nothing.
And how can I use those list (when I'll find it!)
Thanks a lot
- Attachments
-
- 2016-07-13-18-31-57.png (351.1 KiB) Viewed 26805 times
Re: Add action (Rename file)
It would be probably best if you'd tell us what the ultimate goal of your flow is. That way, we might help you better!wfrcrd wrote:I have a trigger wich works "file observer" and the I set the action Init variable list as you can see on the image.
Re: Add action (Rename file)
Yes sure, I have several pourposes, one example:
there are different apps wich produces images on different location,
I'd like to put all the images in the same directory and then rename all those images.
there are different apps wich produces images on different location,
I'd like to put all the images in the same directory and then rename all those images.
Re: Add action (Rename file)
Take a look at the following flow. I made it sometime ago to create a daily backup of every flow on my phone and store the three most recent of those in my Dropbox.
You'll fine plenty of variable usage there (all things within curly braces are variables), and also a lot of file manipulation, including iterating over a list of files. If you have any more questions I'm happy to help!
You'll fine plenty of variable usage there (all things within curly braces are variables), and also a lot of file manipulation, including iterating over a list of files. If you have any more questions I'm happy to help!
Re: Add action (Rename file)
Ehm.. it seems very complicated to me, expecially because it's not so simple to me to translate the xml text to a
flow interface, I'll try it and then I will have a lot of question..
See you soon and
Thanks a lot.
flow interface, I'll try it and then I will have a lot of question..
See you soon and
Thanks a lot.