<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I copy an entire folder that contains multiple layers of subfolders? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878624#M104157</link>
    <description>&lt;P&gt;You have not described the issue in sufficient detail to allow for a solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What errors are you getting when dealing with subfolders?&amp;nbsp; Are you attempting to copy the subfolder file to the same subfolder on a different drive or are all files going to end up on a single folder?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 12:45:20 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-06-06T12:45:20Z</dc:date>
    <item>
      <title>How can I copy an entire folder that contains multiple layers of subfolders?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878614#M104156</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When I need to copy an entire folder, I can use the `copy file()` function for step-by-step copying each file in this folder. Using `Files In Directory()` to obtain the names of all files in the folder, and for looping copying files. &lt;BR /&gt;However, if the folder I need to copy contains subfolders, using `copy file` will result in errors. In fact, if there are multiple layers of subfolders within the folder that I need to copy, it becomes difficult for me to write JSL. &lt;BR /&gt;Are there any good suggestions for solving the issue of copying folders that contain multiple layers of subfolders?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:29:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878614#M104156</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-06-06T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy an entire folder that contains multiple layers of subfolders?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878624#M104157</link>
      <description>&lt;P&gt;You have not described the issue in sufficient detail to allow for a solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What errors are you getting when dealing with subfolders?&amp;nbsp; Are you attempting to copy the subfolder file to the same subfolder on a different drive or are all files going to end up on a single folder?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 12:45:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878624#M104157</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-06-06T12:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy an entire folder that contains multiple layers of subfolders?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878639#M104160</link>
      <description>&lt;P&gt;Have you looked at Copy Directory()?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmarchandFSLR_0-1749215379283.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76609i5C36C84A55FAE72C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmarchandFSLR_0-1749215379283.png" alt="mmarchandFSLR_0-1749215379283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 13:09:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878639#M104160</guid>
      <dc:creator>mmarchandFSLR</dc:creator>
      <dc:date>2025-06-06T13:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I copy an entire folder that contains multiple layers of subfolders?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878924#M104204</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Create Sample Flie in Document folder (a folder with one text file and a sub folder which also have a text file)
baseDir = "$DOCUMENTS";
dir = baseDir || "/" || Substitute( MDYHMS( Today() ), "/", "-", ":", "." );
Create Directory( dir );
theText = "Copy Test";
Save Text File( dir || "/0_Test Copy1.txt", theText );
dir2 = dir || "/" || Substitute( MDYHMS( Today() ), "/", "-", ":", "." );
Create Directory( dir2 );
Save Text File( dir2 || "/Test Copy2.txt", theText );
//Copy Sample Files
Wait( 1 );
CopyFilesList = Files In Directory( dir );
CopyPath= baseDir || "/" || Substitute( MDYHMS( Today() ), "/", "-", ":", "." );
//The error message appears when the copy target is a folder.
For( Count = 1, Count &amp;lt;= N Items( CopyFilesList ), Count++,
	Copy File( dir || "/" || CopyFilesList[Count], CopyPath || "/" || CopyFilesList[Count] )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV data-container=""&gt;&lt;SPAN data-expression=""&gt;The error message occurs after running the example above. An error message appears when the copy target is a folder.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jun 2025 02:05:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-copy-an-entire-folder-that-contains-multiple-layers-of/m-p/878924#M104204</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-06-09T02:05:05Z</dc:date>
    </item>
  </channel>
</rss>

