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)
                # directory B, followed by A
                try:
                    return self.read_file(os.path.join('B',name))
                except FileDoesNotExist:
                    return self.read_file(os.path.join('A',name))
            else:
                # If we are not in snapshot mode, or have not flushed the journal
                # since entering snapshot mode, then directory A is the only
                # place we need to look
                return self.read_file(os.path.join('A',name))
            # a relocation!!!
            try:
                return self.read_file(os.path.join(relocated_dir,name))
            except FileDoesNotExist:
                # The file given in the relocation does not exist?