change_file_extension
Change the file extension of a file.
Arguments
Name | Type | Description | Required |
---|---|---|---|
path_to_file | string | Path to the file whose extension is to be changed. | |
new_extension | string | New file extension to be applied. Examples include 'ts', 'scss', 'py', without a preceding dot. |
Returns
Type | Description |
---|---|
string | The new file name with the updated extension. |
Example
Last updated