#12665: Tab-completion of ftp missing "/" after directories (easy)
-----------------------------------------------+---------------------------
Reporter: humdinger | Owner: nobody
Type: enhancement | Status: new
Priority: normal | Milestone: Unscheduled
Component: Applications/Command Line Tools | Version:
| R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-----------------------------------------------+---------------------------
Comment (by axeld):
Can't you just "stat" all results, and simply add a "/" when an entry is a
directory, before adding it to the completion list? Another (faster, but
possibly not trivial anymore) alternative would be to extend remglob() to
return that information as well.
In any case, the
[https://github.com/freebsd/freebsd/tree/386ddae58459341ec567604707805814a2128a57/contrib/tnftp/src
upstream FTP version] does not implement this yet either.
--
Ticket URL: <https://dev.haiku-os.org/ticket/12665#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.