search for: mkpath

Displaying 7 results from an estimated 7 matches for "mkpath".

Did you mean: mkpatch
2006 Jun 05
1
file_column permissions
...d null values are put in the database. Errno::EACCES in AdminController#index Permission denied - /home/station/public/entry /usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'' /usr/local/lib/ruby/1.8/fileutils.rb:217:in `mkpath'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkpath'' /usr/local/lib/ruby/1.8/fileutils.rb:201:in `mkpath'' #{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column.rb:30:in `init_options'' #{RAILS_ROOT}/vendor/plugins/file_column/lib/file_column.rb:28:in `init_o...
2006 Nov 07
5
mechanize: 400 Bad Request
Hello, when trying to access a certain HTML-frame, I get: "in `request'': Unhandled response (WWW::Mechanize::ResponseCodeError)" and the page returns: "400 Bad Request" * Why? * How to solve this? With browser, it works. In the logs below, I marked 4 lines with "***", where I see possible differences in the URI. But I don''t know, if this is
2013 May 23
2
[PATCH 1/2] gcov: Add script to split coverage informations.
...LAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +use strict; +use File::Path qw(mkpath); + +# some magic constants +my $magic = 0x67636461; +my $ctrBase = 0x01a10000; + +my $xenMagic = 0x58544346; # file header +my $xenTagFunc = 0x58544366; # functions tag +my $xenTagCount0 = 0x58544330; # counter 0 tag +my $xenTagEnd = 0x5854432e; # end file + +# open input file +if ($ARGV[0]) { + m...
2006 Jun 10
0
Dynamic file paths in FileColumn
...def self.init_options(defaults, attr) options = defaults.dup options[:store_dir] ||= File.join(options[:root_path], options[:pub]) options[:tmp_base_dir] ||= File.join(options[:store_dir], "tmp") options[:base_url] ||= options[:web_root] + File.join(attr) FileUtils.mkpath([ options[:store_dir], options[:tmp_base_dir] ]) options end ... def file_column(attr, options={}) options = DEFAULT_OPTIONS.merge(options) if options my_options = FileColumn::init_options(options, attr.to_s) end ... end Thanks in advanc...
2007 Mar 22
0
Url searching ?
...ls'' class TestAnalyzer def token_stream(field, str) ts = Ferret::Analysis::AsciiStandardTokenizer.new(str) ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts) end end system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'') File.mkpath(''/tmp/ferret_test'') INDEX = Ferret::I.new(:path => ''/tmp/ferret_test'', :analyzer => TestAnalyzer.new) INDEX << {:type => :url, :url => ''http://google.fr''} INDEX << {:type => :url, :url => ''http://ferret.dav...
2007 Apr 03
3
[Repost] Problem with url searching..
...ls'' class TestAnalyzer def token_stream(field, str) ts = Ferret::Analysis::AsciiStandardTokenizer.new(str) ts = Ferret::Analysis::AsciiLowerCaseFilter.new(ts) end end system ''rm -rf /tmp/ferret_test'' if File.exists?(''/tmp/ferret_test'') File.mkpath(''/tmp/ferret_test'') INDEX = Ferret::I.new(:path => ''/tmp/ferret_test'', :analyzer => TestAnalyzer.new) INDEX << {:type => :url, :url => ''http://google.fr''} INDEX << {:type => :url, :url => ''http://ferret.dav...
2006 Jan 09
7
File_column Dynamic directory
I asked this question earlier and did recieve an answer but I am not sure Ifully understood the answer as I am getting all sorts of errors when trying to implement. Basically I want to add a layer to the path for my files. I have the following set up in my model class: file_column :image, :store_dir => :dynamic_dir def dynamic_dir