# Saving into Subfolder

**URL:** <https://forums.creativeclouddeveloper.com/t/saving-into-subfolder/4283>\
**Category:** UXP Plugin API\
**Created:** [February 11, 2022, 1:32am UTC](https://forums.creativeclouddeveloper.com/t/saving-into-subfolder/4283 "2022-02-11T01:32:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanBlack](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ryanblack/32/1911_2.png) [@RyanBlack](https://forums.creativeclouddeveloper.com/u/RyanBlack)\
**Post date:** [February 11, 2022, 1:32am UTC](https://forums.creativeclouddeveloper.com/t/saving-into-subfolder/4283/1 "2022-02-11T01:32:35Z")

</div>

Ok, I have got some basic functions down where I am able to save into the fileReference, but I would like for this to be a cleaner workflow. The fileReference basically reads the entire path plus file name. Is there anyway to just read the folders, and if possible AND to it so that it created a subfolder?

---

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [February 11, 2022, 8:23am UTC](https://forums.creativeclouddeveloper.com/t/saving-into-subfolder/4283/3 "2022-02-11T08:23:21Z")

</div>

I’m not sure I follow you, do you mean that you’re being returned a full path and you just would like a string of the path minus the filename? Then when you have said edited path, create a subfolder in the path endpoint?
