Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix verifyDirsForNewEnvironment #4085

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AnonHxy
Copy link
Contributor

@AnonHxy AnonHxy commented Sep 16, 2023

Descriptions of the changes in this PR:

Motivation

When verify dires for new environment, we should make sure that all directories should be empty, instead of missedCookieDirs

Changes

verifyDirsForNewEnvironment(missedCookieDirs) -> verifyDirsForNewEnvironment(directories)

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Sep 19, 2023

rerun failure checks

@AnonHxy
Copy link
Contributor Author

AnonHxy commented Sep 19, 2023

@hangc0276 @dlg99 @eolivelli PTAL

@@ -94,7 +94,7 @@ public void checkCookies(List<File> directories) throws BookieException {
if (!missedCookieDirs.isEmpty()) {
if (rmCookie == null) {
// 5.1 new environment: all directories should be empty
verifyDirsForNewEnvironment(missedCookieDirs);
verifyDirsForNewEnvironment(directories);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you encountered any exceptions? The missedCookieDirs is the result of checking remote cookies and directories

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants