443件ヒット
[201-300件を表示]
(0.099秒)
ライブラリ
- pathname (443)
キーワード
- ascend (24)
- atime (12)
- basename (12)
- birthtime (11)
- chmod (12)
- chown (12)
- cleanpath (12)
- ctime (12)
- descend (24)
- dirname (12)
-
each
_ filename (12) - extname (12)
- file? (12)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - mtime (12)
- open (24)
- readlink (12)
- realpath (24)
- rename (12)
- split (12)
- stat (12)
-
to
_ path (12) -
to
_ s (12) - truncate (12)
- utime (12)
検索結果
先頭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...