# Directory structure modification from script

**URL:** <https://qa.fmod.com/t/directory-structure-modification-from-script/16688>\
**Category:** FMOD Studio\
**Created:** [January 26, 2021, 12:39pm UTC](https://qa.fmod.com/t/directory-structure-modification-from-script/16688 "2021-01-26T12:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kstola](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@kstola](https://qa.fmod.com/u/kstola)\
**Post date:** [January 26, 2021, 12:39pm UTC](https://qa.fmod.com/t/directory-structure-modification-from-script/16688/1 "2021-01-26T12:39:28Z")

</div>

Hi!

I’m trying to modify the directory structure for some of my generated files from script, but to no success so far. I’ve been able to create and remove files, but the same trick didn’t work for directories. When I pass the directory path to studio.system.getFile(), the exists() function returns true, but I can’t do anything with it. I was using the remove() function.

EDIT

I’ve checked the permissions to the folder and they are 7777 - all enabled.

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [February 3, 2021, 11:59pm UTC](https://qa.fmod.com/t/directory-structure-modification-from-script/16688/2 "2021-02-03T23:59:23Z")

</div>

Are you able to post some code on what you are trying to accomplish and what you are seeing? It’s possible that the getFile() function isn’t behaving the way you are expecting it to behave.
