diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2018-11-13 09:43:30 +0000 |
---|---|---|
committer | Michael Weiser <michael.weiser@gmx.de> | 2018-11-13 16:23:21 +0000 |
commit | dc51374148de17036e9c3c8857b2a418dfad2f3e (patch) | |
tree | 18cbc294512acc787be2564fd228f03376da15eb /bin | |
parent | a42f22ab70329f0c9f4b568ce61acbe5f3bddcc5 (diff) |
Restore file scan functionality
Make file_scan.py emit json according to the new socket protocol so that
scanning of individual files works again.
Closes #46.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/scan_file.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/scan_file.py b/bin/scan_file.py index 4d25f7e..cf11577 100755 --- a/bin/scan_file.py +++ b/bin/scan_file.py @@ -56,7 +56,8 @@ def main(): file_abspath = path.abspath(args.filename) peekaboo = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) peekaboo.connect(args.socket_file) - peekaboo.send(file_abspath) + request = '[ { "full_name": "%s" } ]' % file_abspath + peekaboo.send(request) print ('Waiting for response...') if args.verbose2: |