Topic "WinSCP doesn't create directories in "Keep up to date" mode"

Author Message
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
I have some troubles with the feature "Keep remote directory up to date". When I create on my local disk a directory, WinSCP doesn't creates it on the remote directory, even when the option "Update subdirectories" is checked in the appropriate dialog box. I'm sure that I'm selected the correct directories on both sides, because 'just' files are uploaded like they should.

Anyone else that also experiences this? My version of WinSCP is 3.4.2 and I'm running on Windows 2000 SP4.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This is known limitation. I'll eventually resolve it.
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
This is known limitation. I'll eventually resolve it.


Is there any workaround for the time being, like to open a second SFTP connection to the same server where I could create the necessary directories (with the intention that WinSCP then any files placed in the manually created directory, will be automatically updated)?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
Is there any workaround for the time being, like to open a second SFTP connection to the same server where I could create the necessary directories (with the intention that WinSCP then any files placed in the manually created directory, will be automatically updated)?

Its not only that WinSCP does not create the new directory on the server. It won't even watch for changes in the new local directory. So you would have to stop the "Keep up to date" function, create local directory (both local and remote) and start the function again. Only then the files created in the new local directory will be uploaded to remote one.
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
Is there any workaround for the time being, like to open a second SFTP connection to the same server where I could create the necessary directories (with the intention that WinSCP then any files placed in the manually created directory, will be automatically updated)?

Its not only that WinSCP does not create the new directory on the server. It won't even watch for changes in the new local directory. So you would have to stop the "Keep up to date" function, create local directory (both local and remote) and start the function again. Only then the files created in the new local directory will be uploaded to remote one.


I see. I had an idea... I don't know whether this works, but in my opinion I could open a second SFTP-connection that uses the feature "Keep up to date" with the created directory to keep both directories up to date constantly. Do you know whether this workaround should work?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
I see. I had an idea... I don't know whether this works, but in my opinion I could open a second SFTP-connection that uses the feature "Keep up to date" with the created directory to keep both directories up to date constantly. Do you know whether this workaround should work?

Sorry, I have no idea what you mean Smile
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
I see. I had an idea... I don't know whether this works, but in my opinion I could open a second SFTP-connection that uses the feature "Keep up to date" with the created directory to keep both directories up to date constantly. Do you know whether this workaround should work?

Sorry, I have no idea what you mean Smile


Well, in short it comes to this: can I create for every directory (and subdirectory) a new SFTP-connection with WinSCP, so on that way all files in all directories will be kept up to date? Ofcourse the diectories itself then will not be updated (like renaming a directory or something).

In theory this could work, but I don't know how WinSCP handles with multiple connections simultaneously to the same server?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
Well, in short it comes to this: can I create for every directory (and subdirectory) a new SFTP-connection with WinSCP, so on that way all files in all directories will be kept up to date? Ofcourse the diectories itself then will not be updated (like renaming a directory or something).

I do not understand how this would help you. You will just achive the same WinSCP can do. But new (added) local subdirectories will not by synchronised anyway.
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
Well, in short it comes to this: can I create for every directory (and subdirectory) a new SFTP-connection with WinSCP, so on that way all files in all directories will be kept up to date? Ofcourse the diectories itself then will not be updated (like renaming a directory or something).

I do not understand how this would help you. You will just achive the same WinSCP can do. But new (added) local subdirectories will not by synchronised anyway.


I mean that I want to create open a new connection for each directory that I want to be kept up to date with WinSCP, because WinSCP can only keep up to date one directory at a time.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
I mean that I want to create open a new connection for each directory that I want to be kept up to date with WinSCP, because WinSCP can only keep up to date one directory at a time.

WinSCP can keep up to date up to 500 directories at a time, but it cannot create new remote subdirectories during the process.
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
I mean that I want to create open a new connection for each directory that I want to be kept up to date with WinSCP, because WinSCP can only keep up to date one directory at a time.

WinSCP can keep up to date up to 500 directories at a time, but it cannot create new remote subdirectories during the process.


Oh? Then I did understand something not quite correct. An example:

I want to use the "keep up to date" with the local folder

c:\websites\contents\

and the remote folder

/home/sites/www.test.com/web/

Now I want to have a subdirectory 'pages'. I create a local (so c:\websites\contents\pages) and a remote directory 'pages' (/home/sites/www.test.com/web/pages). Now my question: when I create locally a new file in \contents\pages\, say index.html, does WinSCP upload this file to the remote directory /home/sites/www.test.com/web/pages/ ? If so, my problem is solved Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
Now my question: when I create locally a new file in \contents\pages\, say index.html, does WinSCP upload this file to the remote directory /home/sites/www.test.com/web/pages/ ?

Yes, if you restart (stop/start) the function before, so WinSCP finds the new directory (this will be improved soon).
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
Now my question: when I create locally a new file in \contents\pages\, say index.html, does WinSCP upload this file to the remote directory /home/sites/www.test.com/web/pages/ ?

Yes, if you restart (stop/start) the function before, so WinSCP finds the new directory (this will be improved soon).


OK, then my question is answered. Any idea when a new version of WinSCP is released?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
dennisvz wrote:
Any idea when a new version of WinSCP is released?

Well, I have still more then 100 TO-DO items and I want to implement at least half into next release. So there are still few weeks of work before me Smile
But your request is by chance the next to do, so it may be implemented this evening. I can send you link, once it is done.
_________________
Martin Prikryl
dennisvz
[View user's profile]

Joined: 2005-03-15
Posts: 8
Location: Netherlands
prikryl wrote:
dennisvz wrote:
Any idea when a new version of WinSCP is released?

Well, I have still more then 100 TO-DO items and I want to implement at least half into next release. So there are still few weeks of work before me Smile
But your request is by chance the next to do, so it may be implemented this evening. I can send you link, once it is done.


Great! Smile Thanks a lot. About sending the link: you could send it to the emailaddress which I used to register on the Translation Admin of WinSCP (I'm the current main translator of the Dutch version of WinSCP), so I assume you can track my emailaddress.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License