DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: SFTP new file with HotFolder  (Read 9,876 times)

carbodykits

  • Participant
  • Joined in 2011
  • *
  • Posts: 10
SOLVED: SFTP new file with HotFolder
« on: March 02, 2011, 08:32 PM »
Tried searching but couldn't find this:

1. Script monitors /HotFolder for new files.
2. If new file is found, copies file to new /Directory over SFTP

What do you think?

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: SFTP new file with HotFolder
« Reply #1 on: March 02, 2011, 08:40 PM »
Only new?  Not modified?  Also, 'new' from the time the script is launched, right?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: SFTP new file with HotFolder
« Reply #2 on: March 02, 2011, 08:47 PM »
there are some good tools to do this aren't there? its a very useful thing but i think it already exists.

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: SFTP new file with HotFolder
« Reply #3 on: March 02, 2011, 08:53 PM »
WinSCP can do it.

http://winscp.net/eng/docs/task_keep_up_to_date

carbodykits

  • Participant
  • Joined in 2011
  • *
  • Posts: 10
Re: IDEA: SFTP new file with HotFolder
« Reply #4 on: March 03, 2011, 02:02 AM »
Yes, new. For example,

1. I take a picture with digital camera.
2. New Picture.jpg is added to /Directory1
3. Script monitors /Directory and SFTP transfers a copy to /Directory2 (I need SFTP into my IPAD).

I will look at WinSCP tonight. Thanks for the help!

carbodykits

  • Participant
  • Joined in 2011
  • *
  • Posts: 10
Re: IDEA: SFTP new file with HotFolder
« Reply #5 on: March 04, 2011, 01:51 AM »
Thanks skwire!

Works beautifully!

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: SFTP new file with HotFolder
« Reply #6 on: March 04, 2011, 05:44 AM »
Wonderful.  :)  I'll mark this one as solved.

Original address: https://www.donationcoder.com/forum/index.php?topic=25942.0