るりまサーチ

最速Rubyリファレンスマニュアル検索!
443件ヒット [201-300件を表示] (0.099秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file path
  4. file open
  5. file size

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 5 > >>

Pathname#chmod(mode) -> Integer (24.0)

File.chmod(mode, self.to_s) と同じです。

...File.chmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.chmod...

Pathname#ctime -> Time (24.0)

File.ctime(self.to_s) を渡したものと同じです。

...File.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

IO.write("testfile", "test")
pathname
= Pathname("testfile")
pathname
.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname
.chmod(0755)
pathname
.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.ct...

Pathname#dirname -> Pathname (24.0)

Pathname.new(File.dirname(self.to_s)) と同じです。

...Pathname.new(File.dirname(self.to_s)) と同じです。

//emlist[例][ruby]{
require "pathname"

Pathname
('/usr/bin/shutdown').dirname # => #<Pathname:/usr/bin>
//}

@see File.dirname...

Pathname#expand_path(default_dir = &#39;.&#39;) -> Pathname (24.0)

Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

...Pathname.new(File.expand_path(self.to_s, *args)) と同じです。

@param default_dir self が相対パスであれば default_dir を基準に展開されます。

//emlist[例][ruby]{
require "pathname"

path = Pathname("testfile")
Pathname
.pwd # => #<Pathname:/path/to>
path.expand_...
...path # => #<Pathname:/path/to/testfile>
path.expand_path("../") # => #<Pathname:/path/testfile>
//}

@see File.expand_path...

Pathname#extname -> String (24.0)

File.extname(self.to_s) と同じです。

...File.extname(self.to_s) と同じです。


@see File.extname...

絞り込み条件を変える

Pathname#ftype -> String (24.0)

File.ftype(self.to_s) と同じです。

...File.ftype(self.to_s) と同じです。


@see File.ftype...

Pathname#lchmod(mode) -> Integer (24.0)

File.lchmod(mode, self.to_s) と同じです。

...File.lchmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.lchmod...

Pathname#lchown(owner, group) -> Integer (24.0)

File.lchown(owner, group, self.to_s) と同じです。

...File.lchown(owner, group, self.to_s) と同じです。

@param owner オーナーを指定します。

@param group グループを指定します。


@see File.lchown...

Pathname#make_link(old) -> 0 (24.0)

File.link(old, self.to_s) と同じです。

...File.link(old, self.to_s) と同じです。


@see File.link...

Pathname#make_symlink(old) -> 0 (24.0)

File.symlink(old, self.to_s) と同じです。

...File.symlink(old, self.to_s) と同じです。


@see File.symlink...

絞り込み条件を変える

<< < 1 2 3 4 5 > >>