Skip to content

Ftp server improvement#193

Merged
stefanodellosa-personal merged 3 commits intomainfrom
ftp_server_improvement
Dec 21, 2025
Merged

Ftp server improvement#193
stefanodellosa-personal merged 3 commits intomainfrom
ftp_server_improvement

Conversation

@stefanodellosa-personal
Copy link
Collaborator

Fixed issue with partial or corrupted video file reception.

"camera_id": self.username,
}
)
else:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe you can return here, when the file is ok. And move the os.remove(file_) to the end of the function, so that you can avoid doing two times in the "clean-up" phase.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove is also surrounded with error description per case, so I would prefer to keep it as is.

@stefanodellosa-personal stefanodellosa-personal merged commit dcb04ef into main Dec 21, 2025
2 checks passed
@stefanodellosa-personal stefanodellosa-personal deleted the ftp_server_improvement branch December 21, 2025 18:27
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