(self, size, filepath)
TODO: Docstring for reserve_space_for_file

        @param size TODO
        @param filepath TODO
TODO: Docstring for reserve_space_for_file
TODO : Docstring for reserve_space_for_file
def reserve_space_for_file(self, size, filepath):
        """
        TODO: Docstring for reserve_space_for_file

        @param size TODO
        @param filepath TODO
        """
        mount_path = self._mount_for_path(filepath)
        mount = self._mounts.setdefault(mount_path,
                {'min_free': self.default_minimum, 'reservations': dict()})
        available = self.available_space_for_path(mount_path) - mount['min_free']
        if(size < available):
            mount['reservations'].update({filepath:size})
            return True
        else:
            return False
def reserve_space_for_file ( self , size , filepath ) : mount_path = self . _mount_for_path ( filepath ) mount = self . _mounts . setdefault ( mount_path , { 'min_free' : self . default_minimum , 'reservations' : dict ( ) } ) available = self . available_space_for_path ( mount_path ) - mount [ 'min_free' ] if ( size < available ) : mount [ 'reservations' ] . update ( { filepath : size } ) return True else : return False