Hello,
We are switching from an old mainframe product to a new one which doesn't come with FTP so I wrote a script to copy all FTP sites from the old product to FileZilla
The script works great, except for copying the RemoteDir which looks like it uses a different path than LocalDir
Example:
C:\temp is:
<RemoteDir>3 0 2 C: 4 temp</RemoteDir>
SMP_PARTPDC_DV:[000000.U001090] is:
<RemoteDir>2 15 SMP_PARTPDC_DV: 6 000000 7 U001090</RemoteDir>
What language is this using? Is there anyway to convert it?
sitemanager.xml RemoteDir help
Moderator: Project members
Re: sitemanager.xml RemoteDir help
It's a space-separated list.
First number is the server type as selected in the Site Manager. Second number is the length of the path prefix, and if non-zero, followed by the path prefix. Afterwards it's continuing with the segments in the path, for each segment it's length of the segment followed by the segment itself.
It's 2023, so all servers should out of the box use the Unix-like path syntax (servers that don't belong in museum).
The server-type number for Unix-like servers is 1.
Unix-like path syntax has no concept of path prefixes, so that part is always 0
Example path:
This path has 3 segments, of 4, 2 and 12 characters each.
Putting it all together we get this:
First number is the server type as selected in the Site Manager. Second number is the length of the path prefix, and if non-zero, followed by the path prefix. Afterwards it's continuing with the segments in the path, for each segment it's length of the segment followed by the segment itself.
It's 2023, so all servers should out of the box use the Unix-like path syntax (servers that don't belong in museum).
The server-type number for Unix-like servers is 1.
Unix-like path syntax has no concept of path prefixes, so that part is always 0
Example path:
Code: Select all
/just/an/example path
Putting it all together we get this:
Code: Select all
1 0 4 just 2 an 12 example path
Re: sitemanager.xml RemoteDir help
Thanks for the info and the quick response!