Renaming A Folder the same as the file name

Post Reply
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Renaming A Folder the same as the file name

Post by Charltonpaul »

I have a file called 1296_FORT_Pamph V3.0_KR-ko_Print and I want to put it in a folder with the same name, but because it has a space instead of an underscore, it renames the folder as 1296_FORT_Pamph.

Is there a way to fix this.
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Renaming A Folder the same as the file name

Post by rhd_ole »

How are you creating the folder? I just did a simple flow using assemble job with with Job Folder name as [Job.NameProper] and it output correctly with the file inside the folder.
Last edited by rhd_ole on Wed Feb 14, 2024 1:12 pm, edited 1 time in total.
Color Science & Workflow Automation
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

The files are split by certain pages, then re-combined and text added to the end of the file name.
Attachments
Screenshot 2024-02-09 at 16.29.28.png
Screenshot 2024-02-09 at 16.29.28.png (231.08 KiB) Viewed 638 times
Screenshot 2024-02-09 at 16.28.49.png
Screenshot 2024-02-09 at 16.28.49.png (217.8 KiB) Viewed 638 times
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Renaming A Folder the same as the file name

Post by rhd_ole »

What step in your flow are you creating the folders, and if you are using an assemble what are the properties you have set in them?
Color Science & Workflow Automation
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

attached
Attachments
Screenshot 2024-02-09 at 19.26.02.png
Screenshot 2024-02-09 at 19.26.02.png (207.56 KiB) Viewed 625 times
Screenshot 2024-02-09 at 19.22.23.png
Screenshot 2024-02-09 at 19.22.23.png (170.08 KiB) Viewed 625 times
Screenshot 2024-02-09 at 19.21.16.png
Screenshot 2024-02-09 at 19.21.16.png (245.59 KiB) Viewed 625 times
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Renaming A Folder the same as the file name

Post by freddyp »

I can only ask what rhd_ole was asking for, just a bit rephrased: as of where in the flow is the name wrong? Is it only at the end of the flow (Archive hierarchy) that the name is wrong, or is it somewhere along the route and at what point exactly?

If you are OK with that, it is better to export the flow, zip it and share that than to share screenshots that may be showing settings that have nothing to do with it. To make things easier for those who want to investigate this, remove the steps that process the files without changing the names (PitStop Server and Quite Hot Imposing).
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

Flow attached
Attachments
Fortuna A5 Study Pamphlet Saddle.zip
(227.51 KiB) Downloaded 130 times
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Renaming A Folder the same as the file name

Post by rhd_ole »

Just trying to follow this more. So you are looking to put the files that come out of the rename jobs, that go through the Set hierarchy path into your Working folder in a folder with the same name as the file?

If so, you Set hierarchy was before the space in the name so it was using just that to name the folder and not the entire Job.NameProper. I updated the variable in the set hierarchy and they all seem to be one folder named the same as the file.

You can see in the attachements

Old variable -
Screenshot 2024-02-12 at 5.18.59 AM.png
Screenshot 2024-02-12 at 5.18.59 AM.png (52.38 KiB) Viewed 462 times
New variable -
Screenshot 2024-02-12 at 5.19.10 AM.png
Screenshot 2024-02-12 at 5.19.10 AM.png (60.44 KiB) Viewed 462 times
Result in folder -
Screenshot 2024-02-12 at 5.16.48 AM copy.jpg
Screenshot 2024-02-12 at 5.16.48 AM copy.jpg (124.6 KiB) Viewed 462 times
Color Science & Workflow Automation
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

Thanks for the reply, i have updated the hierarchy as you have said, but now the files have been put into separate folders. The files need to just go into one folder, named the original name.
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Renaming A Folder the same as the file name

Post by rhd_ole »

Can you post up a photo of the folder structure you are after. I read it as you wanted one file per folder. If you can show how you'd want the files to be placed, it should be easy enough.
Color Science & Workflow Automation
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

Sorry cant post a photo

Original file without it being touched = 1296_FORT_Pamph V3.0_KR-ko_Print

This name will be the folder name. No other folders, only 1 created.

Then in this folder will be 4 files

1296_FORT_Pamph V3.0_KR-ko_Print COVER VISUAL.pdf
1296_FORT_Pamph V3.0_KR-ko_Print Cover-L-PB.pdf
1296_FORT_Pamph V3.0_KR-ko_Print DIE CUT-L-PB.pdf
1296_FORT_Pamph V3.0_KR-ko_Print Text-L-PB.pdf
rhd_ole
Member
Posts: 103
Joined: Mon Jan 24, 2022 5:36 pm

Re: Renaming A Folder the same as the file name

Post by rhd_ole »

Charltonpaul wrote: Wed Feb 14, 2024 12:51 pm Sorry cant post a photo

Original file without it being touched = 1296_FORT_Pamph V3.0_KR-ko_Print

This name will be the folder name. No other folders, only 1 created.

Then in this folder will be 4 files

1296_FORT_Pamph V3.0_KR-ko_Print COVER VISUAL.pdf
1296_FORT_Pamph V3.0_KR-ko_Print Cover-L-PB.pdf
1296_FORT_Pamph V3.0_KR-ko_Print DIE CUT-L-PB.pdf
1296_FORT_Pamph V3.0_KR-ko_Print Text-L-PB.pdf
This is what I was after.

So you need to record the original name to privatedata, I just set the Job State as [Job.NameProper] in a folder before the file is split apart, this way the name can be used for the hierarchy, I used your naming convention to add the info after the space like you show. In the set hierarchy, I used [Job.JobState] ( which is the orgainal name of the file, then all files that pass are placed in a folder with that name, in your archive hierarchy.

If you don't have to use Job State, you can just set as a private data key as original_name or something, whatever works for you.. .Here is the flow showing it.
Folder as same name as file.sflow.zip
(23.83 KiB) Downloaded 119 times
Color Science & Workflow Automation
Charltonpaul
Newbie
Posts: 11
Joined: Mon Feb 27, 2023 12:44 pm

Re: Renaming A Folder the same as the file name

Post by Charltonpaul »

Thank you for you help and time with this problem. Much appreciated
Post Reply