[haiku-bugs] Re: [Haiku] #12665: Tab-completion of ftp missing "/" after directories (easy)

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Tue, 21 Mar 2017 07:44:02 -0000

#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.

Other related posts: