Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Move `src` to `dst`

Move (copy and remove) the source file or directory (*src*) to the
destination file or directory (*dst*)

:param src: Source file or folder to move
:param dst: Destination file or folder

        def mv(src, dst):
    """Move `src` to `dst`

    Move (copy and remove) the source file or directory (*src*) to the
    destination file or directory (*dst*)

    :param src: Source file or folder to move
    :param dst: Destination file or folder
    """
    LOGGER.info("Moving %s to %s", src, dst)
    shutil.move(src, dst)
        


src/x/n/Xnt-0.6.3/xnt/__init__.py   Xnt(Download)
 
from xnt.tasks import cp
from xnt.tasks import mv
from xnt.tasks import mkdir
from xnt.tasks import rm

src/x/n/Xnt-0.6.3/xnt/tests/taskmovetests.py   Xnt(Download)
    def test_mv(self):
        """Test Moving files and folders"""
        xnt.tasks.mv("temp/testfolder1", "temp/testfolder2")
        self.assertTrue(os.path.exists("temp/testfolder2"))
        self.assertFalse(os.path.exists("temp/testfolder1"))
        xnt.tasks.mv("temp/testfile1", "temp/testfile5")