Generic function to strip extension from file name, given a BrainFileDescriptor instance.
BrainFileDescriptor
Useful links