Displaying 5 results from an estimated 5 matches for "do_ls_dir".
Did you mean:
do_is_dir
2002 Oct 18
1
Patch: sftp client support of "ls [flags] [path [localfile]]" feature
...direct the output of ls/dir
to a local file.
The following are the diff outputs against 3.5p1 to enable this feature.
*** sftp-int.c.orig Wed Sep 11 20:34:15 2002
--- sftp-int.c Fri Oct 18 13:39:46 2002
***************
*** 555,567 ****
/* sftp ls.1 replacement for directories */
static int
! do_ls_dir(struct sftp_conn *conn, char *path, char *strip_path, int lflag)
{
int n;
SFTP_DIRENT **d;
if ((n = do_readdir(conn, path, &d)) != 0)
return (n);
/* Count entries for sort */
for (n = 0; d[n] != NULL; n++)
--- 555,587 ----
/* sftp ls.1 replacement for directories */...
2017 Mar 17
4
[Bug 2694] New: sftp ls command ignores sorting flags for globbed listing
...Priority: P5
Component: sftp
Assignee: unassigned-bugs at mindrot.org
Reporter: martin at winscp.net
The `sftp` `ls` command ignores all sorting flags, for globbed
listings.
Note a lack of `LS_*_SORT` flags use in the `do_globbed_ls` function,
contrary to non-globbed `do_ls_dir`.
Posted based on:
http://serverfault.com/q/839005/168875
--
You are receiving this mail because:
You are watching the assignee of the bug.
2010 May 05
2
[Bug 1767] New: Inconsistend wildcard expansion in 'ls *'
https://bugzilla.mindrot.org/show_bug.cgi?id=1767
Summary: Inconsistend wildcard expansion in 'ls *'
Product: Portable OpenSSH
Version: 5.5p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: sftp
AssignedTo: unassigned-bugs at mindrot.org
2003 Oct 13
1
Problem in sftp 'ls' command output
....lotsend/000000681.lotsend/000000682.lotsend/endfile
[my shitty wrapping email client could make the problem not obvious.
Here it is : the file names are concatenated, without spaces in-between]
Known problem ? If so, my apologies. If not, I did a little homework and
found that the sftp-int.c/do_ls_dir function seems to be the culprit. We
have first :
--------
if (!(lflag & SHORT_VIEW)) {
int m = 0, width = 80;
struct winsize ws;
/* Count entries for sort and find longest filename */
for (n = 0; d[n] != NULL; n++)
m = MAX(m, strlen(d[n]->filename));
if...
2008 Jul 21
2
sftp needs a long time for sending a filelist
Hello all
Im using sftp 1:4.7p1-8ubuntu1.2
in a batchjob
Ive noticed that sftp needs a long time for sending a filelist.
The timespan increases exponential if many files are on the
remoteserver.
for example "ls -la *.txt" needs 10 seconds for 2000 files
but needs 50 seconds for 4000 files.
For 150.000 Files i have to wait 15 minutes for example
but the