Copy/Move files in a directory (with filter name) to another directory - Grasshopper2024-03-28T14:09:55Zhttps://www.grasshopper3d.com/forum/topics/copy-move-files-in-a-directory-with-filter-name-to-another?commentId=2985220%3AComment%3A1477357&feed=yes&xn_auth=noThanks! Very useful!tag:www.grasshopper3d.com,2020-05-10:2985220:Comment:20653742020-05-10T23:05:54.873ZDanielhttps://www.grasshopper3d.com/profile/Daniel614
<p>Thanks! Very useful!</p>
<p>Thanks! Very useful!</p> I need similar functionality…tag:www.grasshopper3d.com,2017-04-12:2985220:Comment:17319842017-04-12T13:04:43.650ZKane Borghttps://www.grasshopper3d.com/profile/Kane
<p>I need similar functionality from the "find file" c# component David shared. </p>
<p>I need it to return the paths in a grasshopper friendly way while returning also empty folders.</p>
<p>Main Folder1/item1.txt{0}</p>
<p>Main Folder1/Sub folder1/item1.txt {0;0}</p>
<p>Main Folder1/Sub folder2/item1.txt {0;1}</p>
<p>Main Folder1/Sub folder3/=Empty={0;2}</p>
<p>Main Folder2/Sub folder2/item1.txt {1;1}</p>
<p>Main Folder1/Sub folder2/SubSub folder 1/item1.txt {0;1;0}<br></br><br></br></p>
<p>Any Idea…</p>
<p>I need similar functionality from the "find file" c# component David shared. </p>
<p>I need it to return the paths in a grasshopper friendly way while returning also empty folders.</p>
<p>Main Folder1/item1.txt{0}</p>
<p>Main Folder1/Sub folder1/item1.txt {0;0}</p>
<p>Main Folder1/Sub folder2/item1.txt {0;1}</p>
<p>Main Folder1/Sub folder3/=Empty={0;2}</p>
<p>Main Folder2/Sub folder2/item1.txt {1;1}</p>
<p>Main Folder1/Sub folder2/SubSub folder 1/item1.txt {0;1;0}<br/><br/></p>
<p>Any Idea how to do this recursively for all the sub directories within the supplied directory.</p> Essential C# is supposed to b…tag:www.grasshopper3d.com,2016-03-04:2985220:Comment:14774572016-03-04T17:35:23.238ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p><strong>Essential C#</strong> is supposed to be good, but I've never read it. These days my questions are so specific that searching the web is the most efficient way to find something. For basic questions about a specific class or method MSDN is my go-to resource, after that it's Google which leads me to StackOverflow 9 times out of 10.</p>
<p></p>
<p>In my script btw. I'm using a more complicated way to delete the old files because I wanted them to end up in the Windows recycle bin (it's…</p>
<p><strong>Essential C#</strong> is supposed to be good, but I've never read it. These days my questions are so specific that searching the web is the most efficient way to find something. For basic questions about a specific class or method MSDN is my go-to resource, after that it's Google which leads me to StackOverflow 9 times out of 10.</p>
<p></p>
<p>In my script btw. I'm using a more complicated way to delete the old files because I wanted them to end up in the Windows recycle bin (it's always safer this way if you're deleting files you might want back). You could however switch to just using System.IO.File.XXXX() methods entirely and that would be easier to write.</p> Thank you so much David! As a…tag:www.grasshopper3d.com,2016-03-04:2985220:Comment:14773572016-03-04T14:39:51.507ZLucianohttps://www.grasshopper3d.com/profile/Ambrosinus
<p>Thank you so much David! As always thanks for your help and effort in GH development! Now i've a base to work on adapting the script for more specific needs. </p>
<p>Could you tell me some information about a quick reference texts in order to operate with the components (i mean c++/c# and/or python)? Often i surfed on internet (eg: <span>stackoverflow.com etc..) to find some specific code to implement my components...clearly mine is just a curiosity.</span></p>
<p>Thank you so much David! As always thanks for your help and effort in GH development! Now i've a base to work on adapting the script for more specific needs. </p>
<p>Could you tell me some information about a quick reference texts in order to operate with the components (i mean c++/c# and/or python)? Often i surfed on internet (eg: <span>stackoverflow.com etc..) to find some specific code to implement my components...clearly mine is just a curiosity.</span></p> The attached file has two C#…tag:www.grasshopper3d.com,2016-03-04:2985220:Comment:14772162016-03-04T08:33:56.582ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>The attached file has two C# components, one which finds all files in a (sub)directory structure that match a certain name pattern, the other moves existing files to new locations.</p>
<p>The attached file has two C# components, one which finds all files in a (sub)directory structure that match a certain name pattern, the other moves existing files to new locations.</p>