Jump to content

File extension is in extensions list: Difference between revisions

m
→‎{{header|Phix}}: builtin comment
m (→‎{{header|Phix}}: builtin comment)
Line 1,332:
 
=={{header|Phix}}==
Note there is builtin, however get_file_extension("MyData_v1.0.tar.bz2") yields "bz2", since it scans right-to-left for the '.', and also it also yields "so" for "libglfw.so.3.1" (it saves the "1", and the "3", but carries on scanning left and replaces if it finds another '.'). So to match the task requirements more precisely we shall write a custom version.
<lang Phix>constant extensions = lower({"zip","rar","7z","gz","archive","A##","tar.bz2"})
 
7,813

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.