(self, path, simfile)
Insert a file into the filesystem. Returns whether the operation was successful.
Insert a file into the filesystem. Returns whether the operation was successful.
Insert a file into the filesystem . Returns whether the operation was successful .
def insert(self, path, simfile):
        """
        Insert a file into the filesystem. Returns whether the operation was successful.
        """
        if self.state is not None:
            simfile.set_state(self.state)
        mountpoint, chunks = self.get_mountpoint(path)

        if mountpoint is None:
            self._files[self._join_chunks(chunks)] = simfile
            return True
        else:
            return mountpoint.insert(chunks, simfile)
def insert ( self , path , simfile ) : if self . state is not None : simfile . set_state ( self . state ) mountpoint , chunks = self . get_mountpoint ( path ) if mountpoint is None : self . _files [ self . _join_chunks ( chunks ) ] = simfile return True else : return mountpoint . insert ( chunks , simfile )