aamine
95a5b4e9a4
* lib/fileutils.rb: (In previous commit) new method chown.
...
* lib/fileutils.rb: (In previous commit) new method chown_R.
* lib/fileutils.rb: (In previous commit) new method chmod_R wrongly added. Removed now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 12:29:55 +00:00
aamine
7c0370dcaf
* lib/fileutils.rb (mkdir, mkdir_p): should chmod explicitly. [ruby-core:03881]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 11:46:24 +00:00
aamine
ed1a776ae0
* lib/fileutils.rb (mkdir_p): should pass mode argument to Dir.mkdir. [ruby-dev:24242]
...
* test/fileutils/test_fileutils.rb: test it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-10 06:56:20 +00:00
aamine
18c0a86cc6
* lib/fileutils.rb (cp_r): copies symlink to symlink, except cp_r root.
...
* lib/fileutils.rb: new method FileUtils.copy_entry.
* test/fileutils/test_fileutils.rb: more cp_r tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-08 21:35:11 +00:00
aamine
876aa19435
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
...
* test/fileutils/test_fileutils.rb (mkdir): test "\n" in path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 12:04:19 +00:00
aamine
bd4dc9f671
* test/fileutils/test_fileutils.rb (rm_f, rm_r): test :force flag.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-02 12:57:31 +00:00
aamine
3d92d0a135
* test/fileutils/test_fileutils.rb (test_rm_r): test if rm_rf can remove a symlink to the directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-10 13:41:43 +00:00
aamine
ddc22d3596
* test/fileutils/test_fileutils.rb: rescue SystemCallError instead of EINVAL. File.link may raise EACCES on network file systems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-13 03:27:01 +00:00
aamine
0c30c6836b
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on Win9x. [ruby-dev:22713]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-12 20:21:24 +00:00
nahi
04b5228aba
* test/*: remove $: trick. [ruby-dev:22763] use test/runner.rb to
...
run test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-29 13:22:27 +00:00
nobu
52975bb7a7
* test/fileutils/test_fileutils.rb: should not create any
...
files or directories in current directory. [ruby-talk:88724]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-24 02:26:44 +00:00
aamine
232b4c2073
* lib/fileutils.rb (mkdir): remove trailing `/' from pathes.
...
* lib/fileutils.rb (rmdir): ditto. [ruby-dev:22238]
* lib/fileutils.rb (rmdir_r): ditto.
* lib/fileutils.rb (fu_copy_dir): check if it is a directory after mkdir(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-12 10:33:24 +00:00
aamine
4f95ee2458
* test/fileutils/test_fileutils.rb (test_mkdir_p): test expand_path'ed path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-11 12:07:17 +00:00
aamine
8c95664355
* test/fileutils/test_fileutils.rb (test_cp): test if the error is kind of SystemCallError. It is needless details that which errno is set on each systems.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-04 05:09:47 +00:00
aamine
76eab3527f
* test/fileutils/test_fileutils.rb: check if Pathnames are usable for arguments.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-02 11:03:37 +00:00
aamine
e5690fcd6d
* lib/fileutils.rb (fu_each_src_dest0): call #to_str to allow Pathname for arguments. [ruby-core:01795]
...
* test/fileutils/test_fileutils.rb: does much strict test on "same" files detecting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-12-01 05:18:46 +00:00
eban
f56d1d8777
* test/fileutils/test_fileutils.rb (test_ln_s): should be a file, not
...
a directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-28 12:46:36 +00:00
eban
f3e1738d9c
* test/fileutils/test_fileutils.rb: should take the existing symbolic
...
link for OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-26 06:42:52 +00:00
aamine
7e42e5c01b
* test/fileutils/test_fileutils.rb: do test in more deep directory.
...
* test/fileutils/test_nowrite.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 11:02:30 +00:00
aamine
0452420e4c
* test/fileutils/test_fileutils.rb: chdir Dir.tmpdir before each test. [ruby-dev:22045]
...
* test/fileutils/test_nowrite.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 09:13:58 +00:00
aamine
edb9ab1b15
* lib/fileutils.rb (have_st_ino?): emx (OS/2 with EMX) does not have st_ino (always 0). [ruby-dev:21972]
...
* lib/fileutils.rb (rename_cannot_overwrite_file?): emx does not allow overwriting files by rename(2).
* test/fileutils/test_fileutils.rb: windows? -> have_drive_letter?, have_file_perm?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-20 10:16:27 +00:00
aamine
1c0cee4f83
* lib/fileutils.rb (fu_same?): check by inode instead of path name, to detect two hard links pointing to the same content.
...
* test/fileutils.rb: did not create correctly looped symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-18 10:05:21 +00:00
aamine
2bfd5c1a3d
* lib/fileutils.rb (fu_each_src_dest): raise if src==dest. [ruby-talk:85344] [ruby-core:01699]
...
* lib/fileutils.rb: use Object#is_a? instead of Class#=== to allow e.g. remote objects for receivers.
* lib/fileutils.rb: FileTest -> File.
* lib/fileutils.rb: put parentheses for arguments of File.xxxx?
* test/fileutils/test_fileutils.rb (test_cp): test "cp a a".
* test/fileutils/test_fileutils.rb (test_mv): test "mv a a".
* test/fileutils/test_fileutils.rb (test_ln): test "ln a a".
* test/fileutils/test_fileutils.rb (test_ln_s): test "ln_s a a".
* test/fileutils/test_fileutils.rb (test_install): test "install a a".
* test/fileutils/fileasserts.rb: new method assert_symlink.
* test/fileutils/fileasserts.rb: assert_is_directory -> assert_directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-18 05:09:20 +00:00
aamine
6d582bf22e
* test/fileutils/test_fileutils.rb: clean up temporaly symlink. [ruby-dev:21420]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-29 07:11:50 +00:00
aamine
0be9d09430
* test/fileutils/test_fileutils.rb: clear all errors on Windows.
...
* test/fileutils/test_nowrite.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-27 00:44:50 +00:00
aamine
577fa4c6a8
* test/fileutils/fileassertions.rb: new file.
...
* test/fileutils/test_fileutils.rb: new file.
* test/fileutils/test_nowrite.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-17 09:52:50 +00:00