{"id":2207,"date":"2008-04-25T10:22:50","date_gmt":"2008-04-25T15:22:50","guid":{"rendered":"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/25\/files-under-folders-fuf\/"},"modified":"2016-05-17T14:33:42","modified_gmt":"2016-05-17T18:33:42","slug":"files-under-folders-fuf","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/25\/files-under-folders-fuf\/","title":{"rendered":"Files Under Folders (FUF)"},"content":{"rendered":"<div class=\"content\">\r\n\r\nBob's pick this week is <a title=\"https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=1378&amp;objectType=FILE (link no longer works)\">Files Under Folders (FUF)<\/a> by Francesco di Pierro.\r\n\r\n&nbsp;\r\n\r\nHave you ever misplaced a file? Suppose you know the extension (type) but forgot what you called it or where you saved it.\r\nOr maybe you have different versions in separate folders. In addition to MATLAB's nice Find Files capability, FUF offers another option. For example, here are all the MAT-files currently under my MATLAB work directory.\r\n\r\n<img decoding=\"async\" src=\"https:\/\/blogs.mathworks.com\/images\/pick\/fuf_screen_shot.png\" alt=\"\" hspace=\"5\" vspace=\"5\" \/>\r\n\r\nWhat I like about FUF is how the input can be a list of folders. Your list could include a mismash of completely different\r\nWindows drive letters and\/or network file folders.\r\n\r\nFUF is far from new on the File Exchange. It was submitted over six years ago. It currently has ten reviews with an average\r\nrating of 4.7 and nearly three thousand downloads. It also inspired submission lictool by Gaetan Koers.\r\n\r\nHow do you manage files in your MATLAB projects. Tell us about it <a href=\"https:\/\/blogs.mathworks.com\/pick\/?p=2207#respond\">here<\/a>.\r\n\r\n<script>\/\/ <![CDATA[\r\nfunction grabCode_5a6bd6dc610347f9909876766a5f395a() {\r\n        \/\/ Remember the title so we can use it in the new page\r\n        title = document.title;\r\n\r\n        \/\/ Break up these strings so that their presence\r\n        \/\/ in the Javascript doesn't mess up the search for\r\n        \/\/ the MATLAB code.\r\n        t1='5a6bd6dc610347f9909876766a5f395a ' + '##### ' + 'SOURCE BEGIN' + ' #####';\r\n        t2='##### ' + 'SOURCE END' + ' #####' + ' 5a6bd6dc610347f9909876766a5f395a';\r\n    \r\n        b=document.getElementsByTagName('body')[0];\r\n        i1=b.innerHTML.indexOf(t1)+t1.length;\r\n        i2=b.innerHTML.indexOf(t2);\r\n \r\n        code_string = b.innerHTML.substring(i1, i2);\r\n        code_string = code_string.replace(\/REPLACE_WITH_DASH_DASH\/g,'--');\r\n\r\n        \/\/ Use \/x3C\/g instead of the less-than character to avoid errors \r\n        \/\/ in the XML parser.\r\n        \/\/ Use '\\x26#60;' instead of '<' so that the XML parser\r\n        \/\/ doesn't go ahead and substitute the less-than character. \r\n        code_string = code_string.replace(\/\\x3C\/g, '\\x26#60;');\r\n\r\n        author = 'Robert Bemis';\r\n        copyright = 'Copyright 2008 The MathWorks, Inc.';\r\n\r\n        w = window.open();\r\n        d = w.document;\r\n        d.write('\r\n\r\n<pre>\\n');\r\n        d.write(code_string);\r\n\r\n        \/\/ Add author and copyright lines at the bottom if specified.\r\n        if ((author.length > 0) || (copyright.length > 0)) {\r\n            d.writeln('');\r\n            d.writeln('%%');\r\n            if (author.length > 0) {\r\n                d.writeln('% _' + author + '_');\r\n            }\r\n            if (copyright.length > 0) {\r\n                d.writeln('% _' + copyright + '_');\r\n            }\r\n        }\r\n\r\n        d.write('<\/pre>\r\n\r\n\r\n\\n');\r\n      \r\n      d.title = title + ' (MATLAB code)';\r\n      d.close();\r\n      }\r\n\/\/ ]]><\/script>\r\n<p style=\"text-align: right; font-size: xx-small; font-weight: lighter; font-style: italic; color: gray;\">\r\n<a><span style=\"font-size: x-small; font-style: italic;\">Get\r\nthe MATLAB code\r\n<noscript>(requires JavaScript)<\/noscript><\/span><\/a>\r\n\r\nPublished with MATLAB\u00ae 7.6<\/p>\r\n\r\n<\/div>\r\n<!--\r\n5a6bd6dc610347f9909876766a5f395a ##### SOURCE BEGIN #####\r\n%%\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadAuthor.do?objectId=969735&objectType=author % Bob>'s pick this week is\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=1378&objectType=FILE Files Under Folders (fuf)>\r\n% by Francesco di Pierro.\r\n%%\r\n% Have you ever misplaced a file? Suppose you know the extension (type) but\r\n% forgot what you called it or where you saved it. Or maybe you have\r\n% different versions in separate folders. In addition to MATLAB's nice\r\n% <https:\/\/www.mathworks.com\/access\/helpdesk\/help\/techdoc\/matlab_env\/f10-14803.html#f10-7498 Find Files>\r\n% capability, FUF offers another option. For example, here are all the\r\n% MAT-files currently under my MATLAB work directory.\r\n%%\r\n% <<..\/images\/pick\/fuf_screen_shot.png>>\r\n%%\r\n% What I like about FUF is how the input can be a list of folders. Your list\r\n% could include a mismash of completely different Windows drive letters\r\n% and\/or network file folders.\r\n%%\r\n% FUF is far from new on the File Exchange. It was submitted over six years\r\n% ago. It currently has ten reviews with an average rating of 4.7 and nearly\r\n% three thousand downloads. It also inspired submission\r\n% <https:\/\/www.mathworks.com\/matlabcentral\/fileexchange\/loadFile.do?objectId=7848&objectType=FILE lictool>\r\n% by Gaetan Koers.\r\n\r\n%%\r\n% How do you manage files in your MATLAB projects. Tell us about it\r\n% <https:\/\/blogs.mathworks.com\/pick\/?p=2207#respond here>.\r\n\r\n##### SOURCE END ##### 5a6bd6dc610347f9909876766a5f395a\r\n-->","protected":false},"excerpt":{"rendered":"<p>\r\n\r\nBob's pick this week is Files Under Folders (FUF) by Francesco di Pierro.\r\n\r\n&nbsp;\r\n\r\nHave you ever misplaced a file? Suppose you know the extension (type) but forgot what you called it or where... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/pick\/2008\/04\/25\/files-under-folders-fuf\/\">read more >><\/a><\/p>","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2207"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/comments?post=2207"}],"version-history":[{"count":1,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2207\/revisions"}],"predecessor-version":[{"id":7195,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/posts\/2207\/revisions\/7195"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/media?parent=2207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/categories?post=2207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/pick\/wp-json\/wp\/v2\/tags?post=2207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}