Class | FakeFS::Pathname |
In: |
lib/fakefs/pathname.rb
|
Parent: | Object |
Pathname class
TO_PATH | = | :to_path | to_path is implemented so Pathname objects are usable with File.open, etc. | |
SAME_PATHS | = | if File::FNM_SYSCASE.nonzero? |
getwd | -> | pwd |
each_line iterates over the line in the file. It yields a String object for each line.
This method has existed since 1.8.1.
Pathname#find is an iterator to traverse a directory tree in a depth first manner. It yields a Pathname for each file under "this" directory.
Since it is implemented by find.rb, Find.prune can be used to control the traverse.
If self is ., yielded pathnames begin with a filename in the current directory, not ./.
See FileUtils.mkpath. Creates a full path, including any intermediate directories that don‘t yet exist.