From 167fafbbb0d5ccda365e4e525381f64f23508697 Mon Sep 17 00:00:00 2001 From: Arthur Golubtsov Date: Tue, 29 Oct 2019 16:03:31 +0300 Subject: [PATCH] file transfer: return rights to pi:pi after file receive --- messaging_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messaging_lib.py b/messaging_lib.py index 1cb0383..878c76f 100644 --- a/messaging_lib.py +++ b/messaging_lib.py @@ -383,7 +383,7 @@ class ConnectionManager(object): logger.error("File {} can not be written due error: {}".format(filepath, error)) else: logger.info("File {} successfully received ".format(filepath)) - os.system("chown -R pi:pi /home/pi/clever-show/") + os.system("chown pi:pi {}".format(filepath)) def write(self): with self._send_lock: