title | timestamp | author | published | description | tags | |
---|---|---|---|---|---|---|
What is the file extension if the filename has more than one dots in them? |
2024-04-09 02:18:01 -0700 |
szabgab |
true |
|
I had a bug in one of my applications so I was wondering what happens if a filename has more than one dot in them. e.g. "hello.world.txt" Will the extension
method return txt
as I'd expect?
The answer is: yes.
My bug is somewhere else.
{% include file="examples/extenstion-for-files-with-dot/src/main.rs" %}
"code.rs" "rs"
"my-data-1.70.html" "html"