diff --git a/push-to-neofs.py b/push-to-neofs.py index 8337d70..58c0738 100644 --- a/push-to-neofs.py +++ b/push-to-neofs.py @@ -242,6 +242,7 @@ def push_files_to_neofs( if not os.listdir(directory): raise Exception(f"Directory '{directory}' is empty.") + expiration_epoch = None if lifetime is not None and lifetime > 0: current_epoch = get_current_epoch(endpoint) expiration_epoch = current_epoch + lifetime