Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Watch SFTP Folder
#2
It depends on what package you use to connect to SFTP. For example pysftp hasĀ 
pysftp.Connection.listdir()

also you may want to use watchdog to monitor for file system changes

here is an example code for sync local and remote (sftp server).

https://codereview.stackexchange.com/que...local-ones



EDIT: I see the example is the other way sync from local to remote and you want the opposite
just google watchdog python ftp
Reply


Messages In This Thread
Watch SFTP Folder - by torz - Nov-30-2017, 11:23 PM
RE: Watch SFTP Folder - by buran - Dec-01-2017, 07:21 AM
RE: Watch SFTP Folder - by torz - Dec-02-2017, 01:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python editor that will SFTP automatically on save sawtooth500 1 220 Apr-30-2024, 05:13 AM
Last Post: Gribouillis
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 596 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  no such file or directory in SFTP saisankalpj 2 1,597 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE
  file transfer via python SFTP SCP mg24 3 3,040 Sep-15-2022, 04:20 AM
Last Post: mg24
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,554 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  Move file from one folder to another folder with timestamp added end of file shantanu97 0 2,501 Mar-22-2021, 10:59 AM
Last Post: shantanu97
  Python Cut/Copy paste file from folder to another folder rdDrp 4 5,118 Aug-19-2020, 12:40 PM
Last Post: rdDrp
  Opening CSV file from SFTP server not working cluelessintern 0 2,797 Apr-08-2020, 08:10 PM
Last Post: cluelessintern
  Watch new files and modify it Macha 3 2,755 Mar-27-2019, 03:47 PM
Last Post: metulburr
  Delete directories in folder is not working after folder is updated asheru93 2 2,680 Feb-13-2019, 12:37 PM
Last Post: asheru93

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020