Tests whether the given file has the specified extension.
Tests whether the given file has the specified extension.
Extension contain the '.', so a typical value for ext
would be ".js".
The comparison is case-sensitive.
Returns a new file with the same path as the given file but a different extension.
Returns a new file with the same path as the given file but a different
extension.
Extension contain the '.', so a typical value for ext
would be ".js".
Precondition: hasExtension(file, oldExt)
Returns a new file with the same parent as the given file but a different name.