Browse files

fsevent is resolving symlinks in paths, which causes all kinds of cra…

…zy things to happen if you're not expecting it. as a fix, we need to do the same and resolve the actual filesystem path without symlinks ahead of time.
  • Loading branch information...
1 parent 8f5898f commit 5ed1bdc72a1b0f2fd11664ce34b6b8914c5d3583 @ttilley committed Jan 26, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fssm/path.rb
@@ -85,6 +85,7 @@ def set_path(path)
@path = FSSM::Pathname.for(path).expand_path
raise FSSM::FileNotFoundError, "No such file or directory - #{@path}" unless @path.exist?
raise FSSM::FileNotRealError, "Path is virtual - #{@path}" if @path.is_virtual?
+ @path = @path.realpath
def set_glob(glob)

0 comments on commit 5ed1bdc

Please sign in to comment.