similar to: Simple FileUtils question

Displaying 20 results from an estimated 1000 matches similar to: "Simple FileUtils question"

2007 Oct 01
2
[ win32utils-Bugs-14360 ] Bad interaction between win32-file-stat and FileUtils
Bugs item #14360, was opened at 2007-10-01 15:00 You can respond 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
2006 Jun 06
4
Checking if a directory is empty using File
Hi, I have one minor issue. I''m trying to check whether a directory is empty given some path to the directory. My code does the following: if(File.directory?(dirpath)) # dirpath = public/images/1 if(File.zero?(dirpath)) FileUtils.rm_rf(dirpath) end end The problem is, while testing this, if I put a file in the directory and run the above code, it still ends up deleting the
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
Hi all, I''m needing to extend the Paperclip Storage module to handle external URL''s so that I can upload my doc''s/images to an external source rather than the app''s local file system. The FileSystem module reads module Filesystem def self.extended base end def exists?(style = default_style) if original_filename
2007 Oct 03
2
excluding directories in rsync
Hello Everyone, I am trying to exclude a directory (and all file and sub-directories under that directory) when using rsync. I have spent two days on google, but everything that I can find there involves excluding individual files, not an entire directory. I have tried the following commands, but in each case the remove_dir and all of its sub-directories and files area still sent to the remote
2006 Jun 13
1
derirect web page to file
Hi all, quick question to all of you ruby on rails experts. I need to redirect the output of a url to an actual physical file. In other words, I need to have what I see in the web browser to intead be written into a file. Any ideas? Thank you. Darkwax -- Posted via http://www.ruby-forum.com/.
2007 Oct 08
1
Getting an actual system error
Heya all, I don''t think I''ve been paying attention. When a Windows API function fails, I could have been doing this: raise SystemCallError(GetLastError()) Instead of this: # Where ''Error'' is nested under the current class. raise Error, get_last_error I''m not sure how big of a deal this is in practice, however, or if it''s even preferred for
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
2005 Apr 21
2
A general view of the TC
Is there any library that i can hook on at runtime in order to create a qdisc dinamically from a program or if i want to do this I have to call the "tc" command? The disadvantage of calling the tc command from a process is that it creates an other process and this slows things up. Marius
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
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 FileUtils => Object irb(main):004:0> require_gem
2009 Sep 15
1
Strange error no idea -fileutils.rbThumbs.db (Errno::EACCES)
I can not find a single post on this but trying to start mongrel_rails after closing it down I get the strangest 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...
2011 Jul 11
0
stuck with permissions in using FileUtils
Even if I am using PaperClip & Delayed_job, I guess the issue maybe solved by FileUtisl gurus ... here is the case : I am testing a delayed video format transcoding , transcoding works perfectly but I get an issue -trying to write back the transcoded video from a tmp directory into the PaperClip path the original uploaded video file is stored into the :url => "/system/
2004 Jul 01
3
BIC vz SBIC vz SIC
DeaRs, I have a doubt about: BIC (Bayesian Information Criterion) SBIC (Schwartz Bayesian Informarion Criterion) SIC (Schwartz Information Criterion) In many references these are know as the same (eg. stepAIC() function) but I just found a SAS8.2 output that show either the BIC and SIC values for a logistic regression.. simillary values but different. 1) question: What are the differences?
2005 Jul 18
0
CESA-2005:470-04: Low CentOS 2 i386 fileutils bug fix update
The following errata for CentOS-2 have been built and uploaded to the centos mirror: RHBA-2005:470-04 fileutils bug fix update Files available: fileutils-4.1-10.9.i386.rpm More details are available from the RedHat web site at https://rhn.redhat.com/errata/rh21as-errata.html The easy way to make sure you are up to date with all the latest patches is to run: # yum update -- John Newbigin
2014 Jan 19
0
gem install fileutils error
Hello Guys I'm new in Ruby so I'm now trying to install fileutils by using the command [ gem install fileutils ] note: I'm using windows 7 :( always when i trying to install it i got this error C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5... yes checking for stdint.h... *** extconf.rb failed *** Could not create Makefile due to some
2008 Oct 21
2
[help] Realtime Swich any context dinamically
when i wnat to working with realtime and mysql for any context i have to insert (switch => Realtiem/context at extensions) statment into extensions.conf for example if i want to have 10 context, i have to insert these lines into extension.conf : [context1] switch => Realtiem/context1 at extensions [context2] switch => Realtiem/context2 at extensions [context3] switch =>
2006 Jan 27
0
FileUtils copy not working when invoked by webserver
I have image manipulation routines in one of my controllers, and in an attempt to "undo" bad image edits, I want to copy the original image file over the "working" image file. FileUtils::Verbose.cp(@registrant.image(''original''), @registrant.image) Works great when invoked with a valid @registrant object in script/console, but it does not work when invoked on
2005 Dec 04
2
Adding sortables dynamically
Hi all, is there a way to define the containment option for a sortable so that it is a class name instead of an id list? I have a case very similar to the sortable lists demo, the only difference is that I'm adding new list containers dinamically, so either I need to redo the Sortable.create calls for all new elements to include the newly added container, or having someway to have them
2010 Nov 18
2
How to know which interface DomU sees the Vif device
Is there a way to dinamically know on which network interface domU sees the Vif Dom0 "gives" to them. Ex: on Dom0: Vifname: vif111.0 on DomU: vif111.0 on network interface : eth0 Best Regards, Diego Dias _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2018 Dec 12
2
How to get the destination in a LoadInst
Thanks Joshua and Michael, Just to to clarify, I'm experimenting with the Interpreter class and observing the instructions that are executed by it. Just for becoming more confident with LLVM in general I'd like for each instruction to access to the various parts of it. In this instance I would like to access to the %Name that is shown in the textual representation. When I call