From: maili31s@... (SugHimsi == SUGIHARA Hiroshi) Date: 2001-08-20T23:19:53+09:00 Subject: [ruby-list:31022] Re: file exist check method? すぎむし。 On Mon, 20 Aug 2001 20:25, Kazuhiro Yoshida wrote: : 英語ドキュメントを書いてみました。おかしな点をご指摘ください。 御参考までに。 : DOSish:module : DOSish file name processing module : : DOSish.drivename(path) : Ruterns the drive letter or the network drive name of path. Returns the path. : the drive letter : C: : the network drive name : \\server\share : : DOSish.rootdir(path) : Returns the root directory part of path. the path. : If path is not only a drive letter or a network drive name, If the path has more than a ...... or a ...... # ってこと? : the return value is equal to as follows. ^^^^^^^^ (トル) : DOSish.drivename(path) + '/' : : If path is absolute which starts by / as UNIX, returns / . If the path represents absolute directory (in UNIX, begins with '/'), ... : : DOSish.dirname(path) : Returns the directory part of path. the path. : / does not apper to the end of the return value appear in ... : as long as path is not a root directory. unless the path is a root directory. : : DOSish.basename(path[, ext]) : Returns the file name part of path. the path. : If ext is corresponding to the path end, it is removed from matches with the end of the path, .... : the return value. : : DOSish.split(path) : Path is divided into the directory and the file name. Divides the path into ...... : the return value is concretely as follows. Definite return values are as follows: : [ DOSish.dirname(path), DOSish.basename(path) ] : : DOSish.join(path1, path2, ...) : Combines paths using File::SEPARATOR. chop the path before it : combined if the path is a root directory. Joins the arguments path1, path2, ... with File::SEPARATOR. If a path is a root directory, it is chopped ahead. -- SugHimsi == SUGIHARA Hiroshi maili31s@clio.ne.jp