Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0
-
None
Description
The write method should truncate any content of an existing file, instead currently it is appending the text to the current content.
Begin so the following assertion is NOT satisfied:
def path = Paths.get('example.text')
path.text = 'alpha'
path.text = 'beta'
assert path.text == 'beta'