Example #1
0
    def move(self, dst):
        """
        Move the current item to the given destination.

        :type dst: str
        :rtype: None
        """
        src = self.path()
        path = studiolibrary.movePath(src, dst)
        self.setPath(path)
Example #2
0
    def move(self, dst):
        """
        Move the current item to the given destination.

        :type dst: str
        :rtype: None
        """
        src = self.path()

        dst = studiolibrary.movePath(src, dst)
        self.setPath(dst)

        if self.database():
            self.database().renamePath(src, dst)