Skip to content
Browse files

fix issue with folder position change

  • Loading branch information...
1 parent f84112c commit 6e3f6c562746d784ce78a0b73ae10b42e1d80a41 @mephux committed
Showing with 0 additions and 13 deletions.
  1. +0 −13 lib/unified2.rb
View
13 lib/unified2.rb
@@ -225,15 +225,11 @@ def self.glob(path, options={}, &block)
validate_path(path)
end
- p paths
-
event_id += 1
paths.read do |path|
file = path
- p file
-
if file.timestamp.to_i == timestamp.to_i
pos = position
else
@@ -255,21 +251,12 @@ def self.glob(path, options={}, &block)
end
end
- p paths.watch.to_s
-
self.watch(paths.watch.to_s, position.to_i) do |event|
event.id = event_id
event.file = paths.watch
block.call(event)
event_id += 1
end
-
- rescue
- p "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
- p timestamp
- p position
- p paths
- exit -1
end
private

0 comments on commit 6e3f6c5

Please sign in to comment.
Something went wrong with that request. Please try again.