You are here: PSPad forum > English discussion forum > FTP home directory

FTP home directory

#1 FTP home directory

Posted by: MadCompie | Date: 2018-06-15 10:42 | IP: IP Logged

When I login to my FTP account, there is a default home directory.

example: /dir1/subdir1/

But when I leave "distance folder" empty in PSPad FTP settings, PSPad assumes that the start directory is the root "/"...

When I enter the real location "/dir1/subdir1/" in "distance folder" then FTP list is ok... I can open a file, example "test.htm" ... meanwhile I switch to another FTP account...
then I want to save back "test.htm" : the FTP opens again BUT ... the contents of the FTP windows are not refreshed.

Very strange, my file "/dir1/subdir1/test.htm" is saved well but not visible in the FTP window.

If I set the start directory to "/dir1" instead of "/dir1/subdir1" then it works?
Only problem now is that after a connection the contents of "/dir1" are showed instead of "/dir1/subdir1"/

I'm not sure but I think that there must be an extra test after connecting: when no initial directory given, do not assume the "/" root as home folder.
Perhaps adding an extra PWD command and moving the result to this initial directory...

Options: Reply | Quote | Up ^


#2 Re: FTP home directory

Posted by: pspad | Date: 2018-06-15 10:49 | IP: IP Logged

Put dir1/subdir1/
don't include first slash

Options: Reply | Quote | Up ^


#3 Re: FTP home directory

Posted by: Andreas | Date: 2018-06-15 13:43 | IP: IP Logged

Mmh, I always use the first slash and avoid the last one within filezilla and PSPad and that works for me.
/home/www

Options: Reply | Quote | Up ^


#4 Re: FTP home directory

Posted by: hhoefling | Date: 2018-06-15 14:06 | IP: IP Logged

MeTo

I use allways /home/xxx

Befor saving a File over FTP
i naviagte to the correct FTP-Account and subdir if any

--
by HH

Options: Reply | Quote | Up ^


#5 Re: FTP home directory

Posted by: MadCompie | Date: 2018-06-18 10:56 | IP: IP Logged

pspad:
Put dir1/subdir1/
don't include first slash

This works too but the problem remains the same.

If I save the file, it will be saved in the correct path but
the middle FTP section is not refreshed with these contents...

Example:

server A:/dirA/subdirA/fileA
server B:/dirB/subdirB/fileB

open fileA --> connection to server A + display A
open fileB --> connection to server B + display B
save fileA --> connection to server A + display A
save fileB --> connection to server B + display A (? not B ?)

I must define /dirB for server B and then it works
But when I define /dirB/subDirB the refresh of the dir won't work...

Options: Reply | Quote | Up ^


#6 Re: FTP home directory

Posted by: MadCompie | Date: 2018-06-18 10:58 | IP: IP Logged

pspad:
Put dir1/subdir1/
don't include first slash

This works too but the problem remains the same.

If I save the file, it will be saved in the correct path but
the middle FTP section is not refreshed with these contents...

Example:

server A:/dirA/subdirA/fileA
server B:/dirB/subdirB/fileB

open fileA --> connection to server A + display A
open fileB --> connection to server B + display B
save fileA --> connection to server A + display A
save fileB --> connection to server B + display A (? not B ?)

I must define /dirB for server B and then it works
But when I define /dirB/subDirB the refresh of the dir won't work...

(P.S. In my case I can't use the /home directory...)

Options: Reply | Quote | Up ^


#7 Re: FTP home directory

Posted by: MadCompie | Date: 2018-06-18 10:58 | IP: IP Logged

pspad:
Put dir1/subdir1/
don't include first slash

This works too but the problem remains the same.

If I save the file, it will be saved in the correct path but
the middle FTP section is not refreshed with these contents...

Example:

server A:/dirA/subdirA/fileA
server B:/dirB/subdirB/fileB

open fileA : connection to server A + display A
open fileB : connection to server B + display B
save fileA : connection to server A + display A
save fileB : connection to server B + display A (? not B ?)

I must define /dirB for server B and then it works
But when I define /dirB/subDirB the refresh of the dir won't work...

(P.S. In my case I can't use the /home directory...)

Options: Reply | Quote | Up ^


#8 Re: FTP home directory

Posted by: MadCompie | Date: 2018-06-26 11:02 | IP: IP Logged

However, using VB scripting (ftpConnect) I can open the FTP connection with a shortcut and execute the FTP command (ftpCommand) CWD /dirB/subdirB/ and this works fine... I guess the same command should be executed with the button "connect" in the ftp window?

Options: Reply | Quote | Up ^


#9 Re: FTP home directory

Posted by: pspad | Date: 2018-06-26 11:06 | IP: IP Logged

I have set remote directory to: public_html/www/include/page
When I see the FTP log, after connection I see:
CWD public_html/www/include/page

So in my opinion it works as required.
Or do you mean script FTP connect command should change to remote directory?

Options: Reply | Quote | Up ^


#10 Re: FTP home directory

Posted by: MadCompie | Date: 2018-07-04 09:08 | IP: IP Logged

Hi,
I think my problem is that I can't empty the field "remote directory"... If I enter nothing PSPad always assumes "/" which is the root directory. When nothing is entered in the "remote directory" I think PSpad should not execute the CWD command?
Or perhaps a CWD with the path obtained from FTP RAW command "PWD" ?

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR