4.0.14.0.0
Reading changes from the repo…
ensureFile
and ensureFileSync
functions now throw an error when the specified path is a directory, aligning their behavior with ensureDirSync
. This change enhances error handling and provides clearer feedback to users. ensureFileSync
does not throw an error when a file exists as a directory. This resolves the inconsistency in behavior between ensureFileSync
and ensureDirSync
, ensuring users receive appropriate error messages.