Pat Nakajima
d711edc590
Added verify.rb to find gaps in FakeFS
2009-07-16 16:18:43 -04:00
Chris Wanstrath
98215fe488
rename File.exists? to File.exist?
...
exists? is marked as obsolete in the API doc [madx]
2009-07-14 00:08:58 -07:00
Jeff Hodges
a201579ef4
FileUtils.touch with multiple files was broken on 1.9.
...
String#each does not exist in ruby 1.9, so Array() must be used.
2009-06-13 23:56:14 -07:00
Jeff Hodges
3221e40dff
Simplifying FileUtils.touch.
2009-06-13 23:52:22 -07:00
Mark
bd97171227
Refactored touch to verify that the parent directories exist
2009-06-13 22:29:00 -07:00
Mark
27e24b2260
Added touch to fileutils
2009-06-13 00:22:37 -07:00
Chris Wanstrath
c6d4b3fe5b
Merge commit 'nakajima/master'
2009-06-12 17:03:23 -07:00
Pat Nakajima
d7870563aa
Fixed inconsistent File.directory? behavior
2009-06-12 18:22:48 -04:00
Pat Nakajima
57d02ab8b2
More accurate test for File.file?
2009-06-12 18:16:16 -04:00
Pat Nakajima
94afbcabc1
Fixed File.file? for non-existent files
2009-06-12 17:54:32 -04:00
Pat Nakajima
6a2c03aa84
Fix FileUtils.cp behavior.
2009-06-11 15:25:21 -07:00
Pat Nakajima
bf6f121601
Fix FileUtils.cp behavior.
2009-06-11 18:11:44 -04:00
Chris Wanstrath
3537c43cbe
add FileUtils.cp & tests
2009-06-03 17:53:07 -07:00
Chris Wanstrath
e051533cd4
ensure File.read raises the correct error
2009-06-03 17:47:10 -07:00
Jeff Hodges
8aba1ad6a5
we can now clone even hard to find dotfiles
2009-06-02 00:16:19 -07:00
Jeff Hodges
364dc66ee5
FileSystem.clone now clones directories and dot files.
2009-06-01 23:54:04 -07:00
Jeff Hodges
c0be5bd8f2
cp_r given a src ending in '/.' now copies over the contents of the
...
src dir.
2009-06-01 04:13:53 -07:00
Jeff Hodges
da576d4208
Fixes to cp_r, ln_s, directory? and file?. Raise an error if we try to cp_r into
...
something that isn't a directory. Do not allow symlinking if the path
the symlink would be at already exists. directory? and file? now
correctly pass if called on a symlink path that points to a path of
the corresponding type.
2009-06-01 03:52:08 -07:00
Jeff Hodges
ddcdfcd04f
Suddenly, cp_r works beautifully! This commit now lets us handle the
...
case where a directory is meant to be copied as a subdirectory to the
destination path when that path already exists. We also do the
appropriate error message when the dest path given is non-existent and
so is its parent.
Oh, crap, we should probably check that it's a directory that we are
merging into.
2009-06-01 03:25:12 -07:00
Jeff Hodges
4de717a976
Hum, how did that test pass last night?
2009-05-31 22:41:11 -07:00
Jeff Hodges
4f6259d180
FileSystem.clone now works when cloning regular files.
2009-05-31 02:24:33 -07:00
Jeff Hodges
2a0eba7933
cp_r should also raise an error when it cannot find the source file.
2009-05-30 23:40:45 -07:00
Jeff Hodges
35c2da972b
Fixing cp_r sharing data between files copied
2009-05-30 23:30:50 -07:00
Jeff Hodges
b5e7359eac
fixing FileUtils.mv
2009-05-30 23:24:29 -07:00
Jeff Hodges
2b3132096c
FileUtils.mv should raise error on missing file
2009-05-30 22:04:17 -07:00
Jeff Hodges
45b0e2828f
adding File#flush
2009-05-30 21:22:57 -07:00
Jeff Hodges
820c9df1b0
Cross-platform check for absolute filepath.
2009-05-30 21:12:40 -07:00
Jeff Hodges
97e2133282
Dir.chdir can now be called without a block, and another error state
...
in chdir is taken care of. Specifically, where chdir into a
non-existent directory could put the filesystem into a broken state.
2009-05-30 20:40:21 -07:00
Jeff Hodges
83c06cd8d4
initialize @dir_levels as an array
2009-05-30 20:23:48 -07:00
Jeff Hodges
b3bc7f6615
chdir now can be nested inside itself, errors if the directory doesn't
...
exist and we can still use absolute paths inside it.
2009-05-30 20:21:44 -07:00
Jeff Hodges
35c88244de
default File.open to read mode
2009-05-30 11:31:19 -07:00
Jeff Hodges
d9a44e5482
Dir.chdir support (but not without a block :()
2009-05-30 11:30:46 -07:00
Jeff Hodges
af2eb63dbe
Adding support for chown, chown_R and tests for Dir.glob.
2009-05-30 10:56:06 -07:00
Chris Wanstrath
b9a8f4e8ca
few more read tests, readlines
2009-05-29 11:46:49 -07:00
Chris Wanstrath
33e176a353
make basic file read / write work
2009-05-29 11:42:39 -07:00
Chris Wanstrath
82ab122093
fill out the readme a bit
2009-05-29 11:24:42 -07:00
Chris Wanstrath
e2256a3895
add MIT license
2009-05-29 11:24:36 -07:00
Chris Wanstrath
d8aa9f38fc
don't overwrite existing directories yet
2009-05-29 11:00:44 -07:00
Chris Wanstrath
384d58e736
make tests work, add more, start adding File.read and friends
2009-05-29 10:23:39 -07:00
Chris Wanstrath
c1973ebcb3
Revert "start adding basic tests for fakefs"
...
This reverts commit f451efdf2d
.
2009-05-29 09:48:28 -07:00
Chris Wanstrath
f451efdf2d
start adding basic tests for fakefs
2009-05-29 01:37:18 -07:00
Chris Wanstrath
7c7cb19885
first post
2009-05-29 01:12:10 -07:00