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.

  • This post is deleted!

  • @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)

Log in to reply

Pycom on Twitter