vinyl-ftp icon indicating copy to clipboard operation
vinyl-ftp copied to clipboard

Mode API

Open morris opened this issue 10 years ago • 4 comments

#5 "Then, what is the utility of having a remoteFolder option for mode?"

Good question - It's used in combination with the relative paths of incoming vinyl files. Not sure whether I could remove it and just use the absolute paths.

However I think the best solution would be an API like "conn.mode( globs, mode )" that just globs and chmods in one go. The gulp/stream way does not have any benefits here. Will keep this issue open for some time and then decide what to do with it.

morris avatar Mar 12 '15 17:03 morris

Are conn.delete and conn.rmdir concerned too?

pyrsmk avatar Mar 12 '15 18:03 pyrsmk

Well, kind of - currently they are regular callback-based methods, no streams involved, but they don't support globs (yet). RMDIR does work recursively though, so there's no pressure on that end. #2

morris avatar Mar 12 '15 18:03 morris

Hum, ok. I assume that we can't glob remote files easily? Anyway, +1 for the conn.mode(globs, mode) API!

pyrsmk avatar Mar 12 '15 18:03 pyrsmk

Yes we can, there's even a glob method, just didn't get around to add the functioniality to rmdir/delete.

morris avatar Mar 12 '15 21:03 morris