icetee / remote-ftp

FTP/FTPS/SFTP client for Atom.io
MIT License
558 stars 102 forks source link

Enable transfer from IBM z/OS MVS data sets #386

Open GrahamHannington opened 8 years ago

GrahamHannington commented 8 years ago

As far as I can tell, the Atom remote-ftp package requires a Unix-style leading slash (/) on FTP file paths.

Unfortunately, that doesn't work for accessing MVS data sets on IBM z/OS (mainframes).

MVS data set names (dsnames) don't use a slash as a separator. Instead, dsnames consist of a sequence of qualifiers separated by periods. For example, MYUID.PDS is a dsname that consists of two qualifiers. A dsname might refer to a file or to a directory (in MVS terminology: a library, or partitioned data set).

So, currently, there appears to be no way to access MVS data sets via remote-ftp.

I'd like to be able to specify the following setting in a .ftpconfig file:

"remote": "'MYUID.'"

(the single quotes are significant)

in the same way that, in a command-line FTP client session (on Windows), I can specify:

cd 'MYUID.'

resulting in:

250 "MYUID." is the working directory name prefix.

I understand that you might not have access to a z/OS system to test this; I'd be happy to be a tester.

jimmaaay commented 7 years ago

You sound like you know a lot more about this than me. I would happily accept this as a pr if you put the work in. If you are up for this it would be best to make it a separate connector to those found in /lib/connectors