mergin/merginproject.py
def fpath(self, file, other_dir=None):
        """
        Helper function to get absolute path of project file. Defaults to project dir but
        alternative dir get be provided (mostly meta or temp). Also making sure that parent dirs to file exist.

        :param file: relative file path in project (posix)
        :type file: str
        :param other_dir: alternative base directory for file, defaults to None
        :type other_dir: str
        :returns: file's absolute path
        :rtype: str
        """
        root = other_dir or self.dir
        abs_path = os.path.abspath(os.path.join(root, file))
        f_dir = os.path.dirname(abs_path)
        os.makedirs(f_dir, exist_ok=True)
        return abs_path

        Helper function to get absolute path of project file. Defaults to project dir but
        alternative dir get be provided (mostly meta or temp). Also making sure that parent dirs to file exist.

        :param file: relative file path in project (posix)
        :type file: str
        :param other_dir: alternative base directory for file, defaults to None
        :type other_dir: str
        :returns: file's absolute path
        :rtype: str
        
Helper function to get absolute path of project file. Defaults to project dir but
alternative dir get be provided (mostly meta or temp). Also making sure that parent dirs to file exist.
Helper function to get absolute path of project file . Defaults to project dir but alternative dir get be provided ( mostly meta or temp ) . Also making sure that parent dirs to file exist .
def fpath(self, file, other_dir=None):
        root = other_dir or self.dir
        abs_path = os.path.abspath(os.path.join(root, file))
        f_dir = os.path.dirname(abs_path)
        os.makedirs(f_dir, exist_ok=True)
        return abs_path
def fpath ( self , file , other_dir = None ) : root = other_dir or self . dir abs_path = os . path . abspath ( os . path . join ( root , file ) ) f_dir = os . path . dirname ( abs_path ) os . makedirs ( f_dir , exist_ok = True ) return abs_path
Helper function to get absolute path of project file.
Helper function to get absolute path of project file .
"""
        Helper function to get absolute path of project file. Defaults to project dir but
        alternative dir get be provided (mostly meta or temp). Also making sure that parent dirs to file exist.

        :param file: relative file path in project (posix)
        :type file: str
        :param other_dir: alternative base directory for file, defaults to None
        :type other_dir: str
        :returns: file's absolute path
        :rtype: str
        """
file's absolute path
file ' s absolute path
str
self
file
relative file path in project (posix)
relative file path in project ( posix )
other_dir
alternative base directory for file, defaults to None
alternative base directory for file defaults to None
None