# FileSystem.CopyFile

**URL:** <https://forum.dynamobim.com/t/filesystem-copyfile/95164>\
**Category:** Uncategorized\
**Created:** [November 3, 2023, 2:45pm UTC](https://forum.dynamobim.com/t/filesystem-copyfile/95164 "2023-11-03T14:45:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.kelfkens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/d.kelfkens/32/161060_2.png) [@d.kelfkens](https://forum.dynamobim.com/u/d.kelfkens)\
**Post date:** [November 3, 2023, 2:45pm UTC](https://forum.dynamobim.com/t/filesystem-copyfile/95164/1 "2023-11-03T14:45:37Z")

</div>

Hi guys,

I think I have a simple question for all you dynamo specialists.  
I’m struggeling with FileSystem.CopyFile.  
What am I doing wrong here?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/61bfb63295314a64f465057d0f079eeeac61d35f.png)  
[test bestand kopieeren.dyn](https://forum.dynamobim.com/uploads/short-url/4nv2YZzvPTV1hEruiuXnltzDxj.dyn) (12.5 KB)

thank you in advance,  
Dennis

---

<div class="post-metadata">

**Author:** ![Jagger.Bean\_L3W4GDSA](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@Jagger.Bean\_L3W4GDSA](https://forum.dynamobim.com/u/Jagger.Bean_L3W4GDSA)\
**Post date:** [November 3, 2023, 2:54pm UTC](https://forum.dynamobim.com/t/filesystem-copyfile/95164/2 "2023-11-03T14:54:55Z")

</div>

It seems that your destination path doesn’t include the file name it is just the directory. It needs to be the same format as the file path you have above for it to work. If that doesn’t fix it please include an image of the error!

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [November 3, 2023, 3:02pm UTC](https://forum.dynamobim.com/t/filesystem-copyfile/95164/3 "2023-11-03T15:02:09Z")

</div>

@Jagger.Bean_L3W4GDSA Is correct. You have to specify the filename in the destinationPath input. Think of the FileSystem.CopyFile as a “Save As” function.

---

<div class="post-metadata">

**Author:** ![d.kelfkens](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/d.kelfkens/32/161060_2.png) [@d.kelfkens](https://forum.dynamobim.com/u/d.kelfkens)\
**Post date:** [November 4, 2023, 12:58pm UTC](https://forum.dynamobim.com/t/filesystem-copyfile/95164/4 "2023-11-04T12:58:53Z")

</div>

Thanks, it was that easy 🙂
