diff --git a/snakemake/remote/GS.py b/snakemake/remote/GS.py index 47eac9743..98c6f3920 100644 --- a/snakemake/remote/GS.py +++ b/snakemake/remote/GS.py @@ -171,7 +171,7 @@ async def inventory(self, cache: snakemake.io.IOCache): iterate over the entire bucket once (and then not need to again). This includes: - cache.exist_remote - - cache_mtime + - cache.mtime - cache.size """ if cache.remaining_wait_time <= 0: @@ -184,7 +184,7 @@ async def inventory(self, cache: snakemake.io.IOCache): # By way of being listed, it exists. mtime is a datetime object name = "{}/{}".format(blob.bucket.name, blob.name) cache.exists_remote[name] = True - cache.mtime[name] = blob.updated.timestamp() + cache.mtime[name] = snakemake.io.Mtime(remote=blob.updated.timestamp()) cache.size[name] = blob.size cache.remaining_wait_time -= time.time() - start_time