We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de5a230 commit dad334fCopy full SHA for dad334f
lib/filewatch/read_mode/handlers/read_file.rb
@@ -5,6 +5,10 @@ class ReadFile < Base
5
def handle_specifically(watched_file)
6
if open_file(watched_file)
7
add_or_update_sincedb_collection(watched_file) unless sincedb_collection.member?(watched_file.sincedb_key)
8
+ if sincedb_collection.member?(watched_file.sincedb_key)
9
+ previous_pos = sincedb_collection.find(watched_file).position
10
+ watched_file.file_seek([watched_file.bytes_read, previous_pos].max)
11
+ end
12
loop do
13
break if quit?
14
loop_control = watched_file.loop_control_adjusted_for_stat_size
0 commit comments