Skip to content

Commit

Permalink
Add local file system outpot
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Rowe authored and Josh Rowe committed Nov 2, 2019
1 parent ffbc4bf commit c3df629
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dataengineeringutils3/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def write_line(self, line):
self.write_file()

def _write(self, file_path):
"""Writes file part to storage or to s3"""
raise NotImplementedError()
"""Writes file part to local storage"""
with open(file_path, "rb") as f:
f.write(bytes(self.string, 'utf-8'))

def write_file(self):
"""Writes and updates number of files and sets lines to 0"""
Expand Down

0 comments on commit c3df629

Please sign in to comment.