Transmit home directory when sending so filenames can be resolved

Also only send metadata if permission granted by user
This commit is contained in:
Kovid Goyal
2021-10-21 20:06:53 +05:30
parent a95a1f1158
commit b51be8382f
2 changed files with 4 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ class TestFileTransmission(BaseTest):
self.assertResponses(ft, status='OK')
ft.handle_serialized_command(serialized_cmd(action='file', file_id='missing', name='XXX'))
self.responses.append(response(status='ENOENT:Failed to read spec', file_id='missing'))
self.assertResponses(ft, status='OK')
self.assertResponses(ft, status='OK', name=home)
ft = FileTransmission()
self.responses = []
ft.handle_serialized_command(serialized_cmd(action='receive', size=2))