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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/i/DirectoryStorage-1.1.21/LocalFilesystem.py   DirectoryStorage(Download)
            if not line:
                break
            self.sync_directory(line)
            self.sync_directory(os.path.split(line)[0])
            c += 1
        # when you last replicated.
        self.rename('journal/replica.tar','misc/replica.previous')
        self.sync_directory('journal')
        logger.log(self.ENGINE_NOISE, 'Flushed %d files from replica' % (c,))
 
            # B directory is currently empty, and we must ensure that it
            # stays that way before we start flushing the journal into A
            self.sync_directory('B')
            logger.log(self.ENGINE_NOISE, 'Left snapshot mode %r'
                       % (self.snapshot_code,))