Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Code
-
Low
-
Low Hanging Fruit
-
Code Inspection
-
All
-
None
-
Description
`PathUtils.WRITE_OPTIONS` is meant to be used for overwriting files. However, without TRUNCATE_EXISTING option, it may overwrite only the beginning of the file if the new content is smaller than previous, which in turn may lead to unexpected file size and fail some tests unexpectedly.