# Is it possible to copy and move a folder in Node-Red?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649>\
**Category:** General\
**Created:** [22 March 2024 01:15 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649 "2024-03-22T01:15:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athurian](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Post date:** [22 March 2024 01:15 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/1 "2024-03-22T01:15:39Z")

</div>

Is it possible to copy and move a folder in NordRed?

I want to copy a folder on Raspberry Pi or Windows and move it to a specific folder. Is there any example of how to copy a folder?

---

<div class="post-metadata">

**Author:** ![AndrewBeasley](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndrewBeasley](https://discourse.nodered.org/u/AndrewBeasley)\
**Post date:** [22 March 2024 01:34 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/2 "2024-03-22T01:34:48Z")

</div>

Do you need Node-RED flow to set up the directory names or would they be fixed?

Simplest way on a Pi (assuming it's running Linux) is to use the [exec node](https://stevesnoderedguide.com/using-the-exec-node) to run the **mv** command.

[mv Command Examples in Linux: Move Files and Directories](https://linuxhandbook.com/mv-command/) has some examples and explanation as does [mv Command Examples in Linux](https://itsfoss.com/mv-command/#5-rename-a-directory) but there are many other examples on the net.

No idea how to do it in Windows but a quick Google shows the command line has a **move** command.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 March 2024 06:48 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/3 "2024-03-22T06:48:57Z")

</div>

You can do this in low-code flow (no OS specific commands) using node-red-contrib-fs-ops

---

<div class="post-metadata">

**Author:** ![AndrewBeasley](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndrewBeasley](https://discourse.nodered.org/u/AndrewBeasley)\
**Post date:** [22 March 2024 11:52 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/5 "2024-03-22T11:52:27Z")

</div>

> [@Steve-Mcl](#):
>
> using node-red-contrib-fs-ops

Was not sure on this as the notes on v1.4.1 (my first hit) say:

> Simple node to copy files

But I notice on [GitHub](https://github.com/DeanCording/node-red-contrib-fs-ops) that the move ability is listed and another link shows this is possible in a later version [node-red-contrib-fs-ops (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-fs-ops)

Bit concerned the two versions show up with no link between them or a way of selecting the latest on the page ☹ - going to raise question on this...

Wonder how much else I've missed...

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [23 March 2024 18:33 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/6 "2024-03-23T18:33:51Z")

</div>

> [@AndrewBeasley](#):
>
> Was not sure on this as the notes on v1.4.1 (my first hit) say:

v1.4.1 looks like it is node-red-contrib-fs as apposed to node-red-contrib-fs-ops.  
These are two different nodes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 June 2024 18:34 UTC](https://discourse.nodered.org/t/is-it-possible-to-copy-and-move-a-folder-in-node-red/86649/7 "2024-06-21T18:34:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
