# Extract/Move file to custom directory using Wowza REST API

**URL:** <https://community.wowza.com/t/extract-move-file-to-custom-directory-using-wowza-rest-api/48114>\
**Category:** Wowza Developer Dojo\
**Created:** [February 3, 2017, 6:16am UTC](https://community.wowza.com/t/extract-move-file-to-custom-directory-using-wowza-rest-api/48114 "2017-02-03T06:16:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_H\_Mcclure](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Joseph\_H\_Mcclure](https://community.wowza.com/u/Joseph_H_Mcclure)\
**Post date:** [February 3, 2017, 6:16am UTC](https://community.wowza.com/t/extract-move-file-to-custom-directory-using-wowza-rest-api/48114/1 "2017-02-03T06:16:30Z")

</div>

Hi,

In my application (which is **C#** based) I’m extracting short clips (10 to 15 seconds long) from a LIVE stream. Which I was able to do by using an example available [here](https://www.wowza.com/docs/ndvr-query-examples). Now I’m trying to move the extracted file from the Wowza directory to my custom directory (directory structure is based upon Date/TimeOfDay/ApplicationName/CameraName).

Is there a way to move clips to custom directory (once they have been extracted) by using Wowza REST API ?

OR

Is there a way I can tell Wowza to extract individual clips to specific folders ? (since I want the clips to be saved in directory based upon above requirements)

I tried to look into **dvrConverterDefaultFileDestination** param available for _ **PUT /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/dvrstores/actions/{action}** _ call but was unable to get it going.

Any help would be greatly appreciated.

Thank you for your time.

J H Mcclure
