search for: fnm_dotmatch

Displaying 3 results from an estimated 3 matches for "fnm_dotmatch".

2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...file = fdata[44, MAX_PATH].unpack("Z*")[0] array << file if regex.match(file) end error = GetLastError() FindClose(hfind) if(error != ERROR_NO_MORE_FILES) raise get_last_error(error) end unless flags & File::FNM_DOTMATCH > 0 array.delete_if{ |file| file =~ /^\..*/ } end array end end Here''s a test suite you can use to verify your results. Additions welcome: ######################################################################## # tc_glob.rb # # Test case for the MyDir.glo...
2007 Jul 09
1
Dir.glob does not find ".project"
Hi, I am trying to zip up my application folder using RubyZip. It works fine except for one glitch: There is a RadRails project file ".project" which does not get included. When I test Dir.glob("#{app_dir}/**/*) it does not return ".project" Is there some problem with filenames starting with "." (I am using Windows) Thanks George
2007 Nov 23
3
CopyHandler and hidden files?
Hello, I was wondering whether the CopyHandler plugin works with hidden files like .htaccess? I have an .htaccess under src/ and another one under src/code/, but they won''t be copied to output/. My config.yaml is: File/CopyHandler: paths: [''**/*.css'', ''**/*.js'', ''**/*.jpg'', ''**/*.png'',