system: _getTypeFromExtension - read/write aware