Author Topic: Showing hidden files in the ftp client  (Read 6251 times)

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Showing hidden files in the ftp client
« on: September 15, 2008, 02:49:33 PM »
Hi:

I'm trying to use the Slickedit FTP client (can't use sftp right now), and I can't see ".htaccess" files in the remote directory (but I can see all files that don't begin with a ".").

Is there a way to tell Slickedit to display hidden files?

I am using Slickedit v11.

Thanks,
Rob

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Showing hidden files in the ftp client
« Reply #1 on: September 15, 2008, 05:43:05 PM »
Maybe 'set-var def_filelist_show_dotfiles 1' on SE commandline or 'Macro>Set Macro Variable ...' helps.
It's also documented: Try e.g. 'help def_filelist_show_dotfiles' on SE commandline
HS2

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 798
  • Hero Points: 54
Re: Showing hidden files in the ftp client
« Reply #2 on: September 15, 2008, 06:01:36 PM »
I have submitted a hotfix for 13.0.2 that addresses this case for UNIX hosts. Since you are on 11.0 you can patch it yourself:

* Edit macros/ftpopen.e

* Find line in __ftpopenUpdateSessionCB():

      cmdargv[0]="LIST";

* Replace with:

      cmdargv[cmdargv._length()] = "LIST";
      if( fcp.System == FTPOS_UNIX ) {
         cmdargv[cmdargv._length()] = "-A";
      }
      if( fcp.ResolveLinks ) {
         cmdargv[cmdargv._length()] = "-L";
      }

* Save and load module (Macro>Load Module)

* Edit macros/ftpclien.e

* Find line in __ftpclientUpdateRemoteSessionCB():

      cmdargv[0]="LIST";

* Replace with:

      cmdargv[cmdargv._length()] = "LIST";
      if( fcp.System == FTPOS_UNIX ) {
         cmdargv[cmdargv._length()] = "-A";
      }
      if( fcp.ResolveLinks ) {
         cmdargv[cmdargv._length()] = "-L";
      }

* Save and load module (Macro>Load Module)

--rodney

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Showing hidden files in the ftp client
« Reply #3 on: September 15, 2008, 08:03:20 PM »
Rodney:  Thanks so much for that, I will try it out.

hs2:  Thanks for your advice, but it didn't work.

In Slickedit v11 (my preferred version), that variable is not recognized.

In my copy of Slickedit 2007, that variable is recognized, however, it only impacts the regular directory listings, but doesn't seem to change the directory listing using FTP.  With that variable at 0, dot files are not shown in regular directory listings, but with it at 1, I did see dot files in regular directory listings, so I know the variable was accepted.  However, with it set to 1 and using the FTP client, it didn't show the dot files.

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 798
  • Hero Points: 54
Re: Showing hidden files in the ftp client
« Reply #4 on: September 15, 2008, 08:10:48 PM »
I would have liked to use def_filelist_show_dotfiles to control listing dot-files for the FTP client tool windows, but ftp servers are inconsistent about whether they show dot-files or not (most of them do from my experience) by default and no amount of 'LIST' switches can change it if they already show them. It would have been a nice tie-in with an existing option. Ah well.

--rodney

rowbearto

  • Senior Community Member
  • Posts: 2335
  • Hero Points: 132
Re: Showing hidden files in the ftp client
« Reply #5 on: September 15, 2008, 08:15:13 PM »
Rodney:  THANK YOU!  That worked.

I found many other instances of "cmdargv[0]="LIST";" in both those files and replaced all of them.  Don't know if it was necessary or not, but it seems to work now.

Thank you again!