Skip to content

check file exists before unlink#26

Merged
felipeshiwu merged 1 commit intomasterfrom
upkeep/check-file-exists-before-unlink
Jan 14, 2026
Merged

check file exists before unlink#26
felipeshiwu merged 1 commit intomasterfrom
upkeep/check-file-exists-before-unlink

Conversation

@felipeshiwu
Copy link

No description provided.

}

@unlink($filename);//if the zip already exists, overwrite it
if ( file_exists( $filename ) ) {
Copy link
Author

Choose a reason for hiding this comment

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

@felipeshiwu felipeshiwu force-pushed the upkeep/check-file-exists-before-unlink branch from b190556 to a1f85ac Compare January 14, 2026 17:53
Comment on lines +75 to +76
self::log( "Error in " . __CLASS__ . "::" . __FUNCTION__ . ", file is not writeable." );
return;

Choose a reason for hiding this comment

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

I know you're just following a pattern here. But in our standards, this should definitely be an exception.

@felipeshiwu felipeshiwu merged commit 1a16e26 into master Jan 14, 2026
3 checks passed
@felipeshiwu felipeshiwu deleted the upkeep/check-file-exists-before-unlink branch January 14, 2026 18:36
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