Detect FTP connection
-
Is it possible to detect FTp connection? When i upload some new file to pycom i want to stop my scheduler to ensure their is enough processing power for the ftp upload.
-
@misterlisty Would this work for you
- download a little semaphore file at the beginning of the ftp session
- have the scheduler check the semaphore file size and pause if it exists
- Perform the necessary ftp operations
- Download an empty file as the semaphore file so the scheduler can see that ftp is no longer in progress. (It would be nice if ftp supported a local delete of the semaphore file)
-
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login