Skip to content

Conversation

@BurdetteLamar
Copy link
Member

@BurdetteLamar BurdetteLamar commented Apr 26, 2022

Treats:

  • #path
  • ::stat
  • ::lstat
  • #lstat
  • ::directory?

Also adds section "Example Files" that explains assumptions about example files. I'm using t.txt already, and I'm pretty sure I'll need t.dat (binary data). I don't know whether I'll need t.rus (Russian text).

I'm doing this work in a Linux-like environment so that the paths will be Linux-style, not Windows-style.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Apr 26, 2022
* or a symlink that points at a directory, and <code>false</code>
* otherwise.
* With string +object+ given, returns +true+ if +path+ is a string path
* leading to a directory, or to a symbolic link to a directory; +false+ otherwise:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a note about File.directory? will return false when the path doesn't exist or not accessible. Not sure if the line File.directory?('foo') # => false implies that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "+false+ otherwise" covers all cases.`

@BurdetteLamar BurdetteLamar merged commit 72628c1 into ruby:master Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants