(cfml_view)
return None
Checks current file to see if it is inside of a mapped folder
    and returns the dot path to the file's containing folder.

    For example, if 'C:/projects/project/model/' is mapped to '/model',
    and the current file is 'C:/projects/project/model/services/myservice.cfc'
    then this function will return 'model.services'
Checks current file to see if it is inside of a mapped folder
    and returns the dot path to the file's containing folder.
Checks current file to see if it is inside of a mapped folder and returns the dot path to the file s containing folder .
def get_folder_mapping(cfml_view):
    """
    Checks current file to see if it is inside of a mapped folder
    and returns the dot path to the file's containing folder.

    For example, if 'C:/projects/project/model/' is mapped to '/model',
    and the current file is 'C:/projects/project/model/services/myservice.cfc'
    then this function will return 'model.services'
    """
    if not cfml_view.file_path:
        return None
    mappings = component_index.get_project_data(cfml_view.project_name).get(
        "mappings", []
    )
    for mapping in mappings:
        normalized_mapping = utils.normalize_mapping(
            mapping, dirname(cfml_view.project_name)
        )
        if not cfml_view.file_path.startswith(normalized_mapping["path"]):
            continue
        mapped_path = normalized_mapping["mapping"] + cfml_view.file_path.replace(
            normalized_mapping["path"], ""
        )
        path_parts = mapped_path.split("/")[1:-1]
        dot_path = ".".join(path_parts)
        if len(dot_path) > 0:
            return dot_path
    return None
def get_folder_mapping ( cfml_view ) : if not cfml_view . file_path : return None mappings = component_index . get_project_data ( cfml_view . project_name ) . get ( "mappings" , [ ] ) for mapping in mappings : normalized_mapping = utils . normalize_mapping ( mapping , dirname ( cfml_view . project_name ) ) if not cfml_view . file_path . startswith ( normalized_mapping [ "path" ] ) : continue mapped_path = normalized_mapping [ "mapping" ] + cfml_view . file_path . replace ( normalized_mapping [ "path" ] , "" ) path_parts = mapped_path . split ( "/" ) [ 1 : - 1 ] dot_path = "." . join ( path_parts ) if len ( dot_path ) > 0 : return dot_path return None