Class: Listen::Record::SymlinkDetector
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb
Constant Summary collapse
- README_URL =
'https://github.com/guard/listen/blob/master/README.md'
- SYMLINK_LOOP_ERROR =
<<-EOS ** ERROR: directory is already being watched! ** Directory: %s is already being watched through: %s MORE INFO: #{README_URL} EOS
- Error =
for backward compatibility
::Listen::Error
Instance Method Summary collapse
-
#initialize ⇒ SymlinkDetector
constructor
A new instance of SymlinkDetector.
- #verify_unwatched!(entry) ⇒ Object
Constructor Details
#initialize ⇒ SymlinkDetector
Returns a new instance of SymlinkDetector.
24 25 26 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb', line 24 def initialize @real_dirs = Set.new end |
Instance Method Details
#verify_unwatched!(entry) ⇒ Object
28 29 30 31 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb', line 28 def verify_unwatched!(entry) real_path = entry.real_path @real_dirs.add?(real_path) or _fail(entry.sys_path, real_path) end |