lib/fusefs/sqlitemapper.rb
def scan()
            db.execute(@sql) do |row|
                new_path, real_path, options =  map_row(row)
                options ||= {}
                options[:sqlite_scan_id] = @scan_id
                begin
                    map_file(new_path, real_path, options)
                rescue StandardError => e
                    puts e
                    puts e.backtrace.join("\n")
                end
            end
            cleanup() { |file_node| file_node.options[:sqlite_scan_id] != @scan_id }
        end
# Executes the sql query and passes each row to map_row (or the block passed in {#initialize})
#
# Subclasses can override this method for pre/post scan processing, calling super as required
Executes the sql query and passes each row to map_row (or the block passed in {#initialize})
Subclasses can override this method for pre/post scan processing, calling super as required
Executes the sql query and passes each row to map_row ( or the block passed in { #initialize } ) Subclasses can override this method for pre / post scan processing calling super as required
def scan()
            db.execute(@sql) do |row|
                new_path, real_path, options =  map_row(row)
                options ||= {}
                options[:sqlite_scan_id] = @scan_id
                begin
                    map_file(new_path, real_path, options)
                rescue StandardError => e
                    puts e
                    puts e.backtrace.join("\n")
                end
            end
            cleanup() { |file_node| file_node.options[:sqlite_scan_id] != @scan_id }
        end
def scan ( ) db . execute ( @sql ) do | row | new_path , real_path , options = map_row ( row ) options ||= { } options [ :sqlite_scan_id ] = @scan_id begin map_file ( new_path , real_path , options ) rescue StandardError => e puts e puts e . backtrace . join ( "\n" ) end end cleanup ( ) { | file_node | file_node . options [ :sqlite_scan_id ] != @scan_id } end
Executes the sql query and passes each row to map_row (or the block passed in {#initialize})
Subclasses can override this method for pre/post scan processing, calling super as required
Executes the sql query and passes each row to map_row ( or the block passed in { #initialize } ) Subclasses can override this method for pre / post scan processing calling super as required