File extension on MAC


#1

If a File object is a directory you can’t get it’s extension

LD ("sourceContainer="+sourceContainer.getFullPathName());
LD ("extension="+sourceContainer.getFileExtension());

output->
sourceContainer=/Users/atom/Library/Audio/Plug-Ins/VST/Ctrlr_Debug.vst
extension=

don’t know if it qualifies as a bug or is this the desired behavior but from what i see MAC operates on directories with extensions alot so it might be useful.


#2

How strange… I’ve no idea why it’s doing that, but it shouldn’t! Thanks, I’ll sort it out!