Skip to content

Commit

Permalink
Added closing of file to be on the safe side
Browse files Browse the repository at this point in the history
  • Loading branch information
peterb180369 committed Oct 29, 2018
1 parent 83e18d2 commit 34e9363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BXSwiftUtils/Files/URL+Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public extension URL
handle.seek(toFileOffset: offset)
handle.write(data)
handle.synchronizeFile()
handle.closeFile()

// Return the number of bytes that were written

Expand Down

0 comments on commit 34e9363

Please sign in to comment.