(self)
Detect if path type is:
            PATH =      S:/location/code_name_001.mb
            SEQUENCE =  S:/location/code_name_001.001.mb
            LOCATION =  S:/location/

        :return:
Detect if path type is:
            PATH =      S:/location/code_name_001.mb
            SEQUENCE =  S:/location/code_name_001.001.mb
            LOCATION =  S:/location/
Detect if path type is : PATH = S : / location / code_name_001 . mb SEQUENCE = S : / location / code_name_001 . 001 . mb LOCATION = S : / location /
def detect_path_type(self):
        """
        Detect if path type is:
            PATH =      S:/location/code_name_001.mb
            SEQUENCE =  S:/location/code_name_001.001.mb
            LOCATION =  S:/location/

        :return:
        """

        part_length = len(self.path.split('/')[-1].split('.'))  # ['code_name_001', '001', 'mb']

        if part_length == 1:
            self.type = 'location'
        elif part_length == 2:
            self.type = 'path'
        elif part_length == 3:
            self.type = 'sequence'
        else:
            print '>> ERROR! Can`t detect the file type of the path = {}'.format(self.path)
def detect_path_type ( self ) : part_length = len ( self . path . split ( '/' ) [ - 1 ] . split ( '.' ) ) # ['code_name_001', '001', 'mb'] if part_length == 1 : self . type = 'location' elif part_length == 2 : self . type = 'path' elif part_length == 3 : self . type = 'sequence' else : print '>> ERROR! Can`t detect the file type of the path = {}' . format ( self . path )