search for: fileutils

Displaying 20 results from an estimated 228 matches for "fileutils".

2007 Oct 01
2
[ win32utils-Bugs-14360 ] Bad interaction between win32-file-stat and FileUtils
...by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=14360&group_id=85 Category: win32-file-stat Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Daniel Berger (djberg96) Assigned to: Nobody (None) Summary: Bad interaction between win32-file-stat and FileUtils Initial Comment: Ruby 1.8.6-25 (one-click) win32-file-stat 1.2.6 I already dealt with the lstat issue for the ''find'' module, but I''m not sure how to fix this one off the top of my head. # stat-mv.rb require ''win32/file'' require ''win32/file/st...
2006 Jun 19
0
FileUtils/ActiveRecord help please?
Does anybody know how to make FileUtils and ActiveRecord coexist? Every attempt I have made results in errors like those quoted below. [belladonna-grr] ~ <0> irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''fileutils'' => true irb(main):003:0> include Fil...
2011 Dec 05
5
Spec'ing a block
Hi folks How would you spec something like this: as_user username do FileUtils.chmod_R 0755, "#{directory}/*" end Where as_user fires off a new process (and set uid to username). It seems that this won''t catch FileUtils.chmod_R: FileUtils.should_receive(:chmod_R).with(0755, "#{@domain.directory}/*") I guess that is because it is passed in...
2007 Mar 28
1
attachment_fu & update_attributes... bug?
...It seems that when "update_attributes" is called with a new file, upload_data= tries to copy a file that doesn''t exist, the file name of the new upload_data. Anyway here''s the error I get: No such file or directory -public/db_files/songs/4/Song.mp3 /usr/lib/ruby/1.8/fileutils.rb:1182:in `stat'' /usr/lib/ruby/1.8/fileutils.rb:1182:in `lstat'' /usr/lib/ruby/1.8/fileutils.rb:1160:in `stat'' /usr/lib/ruby/1.8/fileutils.rb:1242:in `copy_file'' /usr/lib/ruby/1.8/fileutils.rb:459:in `copy_file'' /usr/lib/ruby/1.8/fileutils.rb:383:in `cp&...
2009 Sep 15
1
Strange error no idea -fileutils.rbThumbs.db (Errno::EACCES)
...ngest error I have ever seen. Nothing on Google anywhere at all - please can somebody give some expertise? D:\2_Rails_WWW\rails_apps\footballstars>mongrel_rails start ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1262:in `initialize'': Permission d enied - D:/2_Rails_WWW/rails_apps/footballstars/public/images/active_scaffold/de fault/Thumbs.db (Errno::EACCES) from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils.rb:1262:in `open'' from D:/2_Rails_WWW/ruby/lib/ruby/1.8/fileutils....
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files I get the following: Permission denied - D:/Temp/Merb.5172.0 or E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg - (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'' C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest0'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1377:in `fu_each_src_dest'' C:/Ru...
2004 Dec 15
1
[LLVMdev] FileUtilities.cpp error: `close' undeclared
Hi, When I compile FileUtilities.cpp I get this error: ---------------- llvm[1]: Compiling FileUtilities.cpp for Debug build c:/projects/src/llvm-1/llvm/lib/Support/FileUtilities.cpp: In destructor `llvm::FDHandle::~FDHandle()': c:/projects/src/llvm-1/llvm/lib/Support/FileUtilities.cpp:79: error: `close' undeclared (first use this function) ---------------- Shouldn't function close
2007 May 30
4
aaf and dynamic attrs: a bug?
...et :fields => [ :first_name ] assert Contact.find(:first).respond_to?(:first_name_to_ferret) assert_equal 1, Contact.find_by_contents(''Y*'').total_hits assert_equal 1, Contact.find_by_contents(''first_name:Y*'').total_hits Contact.aaf_index.close FileUtils.rm_rf ''index'' Contact.acts_as_ferret :fields => [ :first_name, :last_name ] assert Contact.find(:first).respond_to?(:last_name_to_ferret) assert_equal 1, Contact.find_by_contents(''Y*'').total_hits assert_equal 1, Contact.find_by_contents(''...
2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
...thoughts on how to troubleshoot this? thanks, Sean ========================================== Errno::EACCES in DisplayController#index Permission denied - /www/shelikes/index RAILS_ROOT: /www/shelikes/public/../config/.. Application Trace | Framework Trace | Full Trace /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 `mkdir_p'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'' /usr/local/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'' /usr/local/lib...
2003 Feb 24
5
-bash: /bin/rm: Argument list too long
Folks: Is there a limit to the number of arguments that can be passed to fileutils programs such as mv or rm ? If yes, is it filesystem dependant/kernel config dependant/fileutils version dependant? Can this maximum limit be tuned/controlled ? I googled on it a bit, but couldn't find anything much more relevant than a message in the OS-X forum. http://www.omnigroup.com/...
2006 Jun 14
2
Simple FileUtils question
Hi, I have a quick question. I am trying to create folders dinamically using FileUtils.mkdir, the problem is that if the folder already exist it gives me an error. Does anyone know if there are any options to mkdir that would let me overwrite the already existing directory? I just need to create a folder with the same name everytime. Any other solution you might suggest? Thanks....
2011 Jul 11
0
stuck with permissions in using FileUtils
...rname(@clip_file) # => (".. /ls/myapp/ public/system/clips/data/65/original" ) basename = File.basename(@clip_file, File.extname(@clip_file)) # => NickFaldo the ffmpeg transcoding process, is writing an output file into the tmp dir , without any problem @tmp_dir = FileUtils.mkdir_p(Rails.root.join("tmp", "converted", "#{clip[:id]}")) # => ( "../clips/tmp/65i" ) @tmp_file = File.join(@tmp_dir, "#{basename}.mp4") # => ( "../clips/tmp/65/NickFaldo.mp4" ) until then everything works as expe...
2006 Jun 05
1
file_column permissions
...g directories, and if i create the directory myself, the app will open without error, but the image is not uploaded when i test out the form, and 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/p...
2011 Jan 13
1
10.04 Ubuntu
...-y --reinstall libgtk2.0-0 libgtk2.0-dev } %x{ apt-get install -y --reinstall libwxbase2.8-0 libwxbase2.8-dev libwxbase2.8-dbg } %x{ apt-get install -y --reinstall wx-common libwxgtk2.8-0 libwxgtk2.8-dev } puts "Copying Ruby libraries to /usr/local/etc for installation" FileUtils.cp %w( rubygems-1.4.1.tgz ruby-sysvipc-0.9.1.tar.gz prawn.tgz ), ''/usr/local/etc'' FileUtils.cd ''/usr/local/etc'' do puts "Installing updated RubyGems package manager." %x{ tar -zxvf rubygems-1.4.1.tgz } FileUtils.cd ''...
2004 Jul 21
1
[LLVMdev] FileUtilities.cpp:72: error: aggregate `stat s' has incomplete type and cannot
Hi As shown below, the .\configure script found a version of stat.h: --------------------- configure:4382: checking for sys/stat.h configure:4399: gcc -c -g -O2 conftest.c >&5 configure:4402: $? = 0 configure:4405: test -s conftest.o configure:4408: $? = 0 configure:4419: result: yes --------------------- However, I got this error when compiling: --------------------- FileUtilities.cpp:
2005 Nov 10
3
[ win32utils-Feature Requests-2811 ] Add UNC support to file / dir
...p;group_id=85 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: graham foster (fosterg2) Assigned to: Nobody (None) Summary: Add UNC support to file / dir Initial Comment: I''d like to see win32 support for UNC''s on the file management level, i.e. FileUtils for Windows Enable UNC support for the following (with recursive options please) directory delete file delete file copy directory copy file move directory move Another option would be to add a ''map to driveletter'' method (as once done, the existing FileUtils module works OK.) N...
2005 Aug 10
1
fileutil & tar utility RPMs on RHAS3.0
Hi, Please advice how to download utility for 'tar', 'cp' supporting RHAS3.0 RPMs listed in note 237997.1 are used for RHAS2.1 * Patch 2883583: fileutils-4.1-4.2.i386.rpm * Patch 2913284: tar-1.13.25-9.i386.rpm Best regards, Huy. == Nguyen Quang Huy Sr. Technical Sales Consultant Oracle Vietnam 53 Quang Trung St, Hanoi Email: quang.huy.nguyen@oracle.com Phone: +84 4 943 2595 Fax: +84 4 943 2592 ==
2008 Jan 30
3
Not all mongrel starting (Errno:EEXIST)
...h then dies with the follow error in the log file: ** Daemonized, any open files are closed. Look at tmp/pids/mongrel.8000.pid and log/mongrel.8000.log for info. ** Starting Mongrel listening at 127.0.0.1:8000 ** Starting Rails with production environment... deployment/installed/ruby/lib/ruby/1.8/fileutils.rb:243:in `mkdir'': File exists - /deployment/installed/myapp/releases/20080130211150/public/bundles (Errno::EEXIST) from /deployment/installed/ruby/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'' from /deployment/installed/ruby/lib/ruby/1.8/fileutils.rb:172:in `mkdir&...
2001 Aug 28
3
df not showing ext3 partition
Is there an updated version of the fileutils df that will show mounted ext3 partitions? I'm using fileutils-4.1. -- Curtis Hogg [buckminst@inconnu.isu.edu] ---------------------------------------------- T-shirt Of The Day: I'm the person your mother warned you about. ---------------------------------------------- Email 1 - buckmins...