Append to a remote existing file¶
Sahara utils remote can only create a new file and write to it or replace a line for a new one, but it can’t append to an existing file. This bp aims to implement this feature.
When managing remote files, sahara can only create new files and replace lines from existing one. The feature to append to an existing file doesn’t exist and it is necessary.
Implement this feature following the idea of the write_to_file method The code is basically the same, the change will be the method of opening the file. Write uses ‘w’ we need to use ‘a’.
Data model impact¶
REST API impact¶
Other end user impact¶
Sahara-dashboard / Horizon impact¶
The implementation is very basic, the idea is similar to the write_file, the necessary change is to open the remote file in append mode.
None for now.