9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ftpfs: cosmetic bug
@ 2002-10-23 14:06 root
  2002-10-23 14:58 ` andrey mirtchovski
  0 siblings, 1 reply; 2+ messages in thread
From: root @ 2002-10-23 14:06 UTC (permalink / raw)
  To: 9fans

Hi,
writing to a non-existent directory gives a strange error message:

term% mv /n/ftp/neXt/biology/rel* /n/ftp/neXt/text
mv: /n/ftp/neXt not a directory
========================

term% ls /n/ftp/neXt/text
ls: /n/ftp/neXt/text: '/n/ftp/neXt' file does not exist
term% ls /n/ftp/neXt
/n/ftp/neXt/3D_reconstruction
/n/ftp/neXt/biology
/n/ftp/neXt/imaging
/n/ftp/neXt/libs
/n/ftp/neXt/rc

Regards,
++pac.
<pac7@post.cz>, for now


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] ftpfs: cosmetic bug
  2002-10-23 14:06 [9fans] ftpfs: cosmetic bug root
@ 2002-10-23 14:58 ` andrey mirtchovski
  0 siblings, 0 replies; 2+ messages in thread
From: andrey mirtchovski @ 2002-10-23 14:58 UTC (permalink / raw)
  To: 9fans

The lines 'transfer complete' give out the answer -- ftpfs tries to walk
all subdirectories when given a glob pattern like the one you have...

a little experimenting, together with the ftpfs source, will show you that
ftpfs 'caches' directory entries, instead of going to the server to fetch
them each time. that's also the case with, for example, freebsd's default
ftp client (especially when one attempts to do 'tab' completion)...

cpu% mv /n/ftp/www/blahblah/blah* .
mv: can't stat /n/ftp/www/blahblah/blah*: '/n/ftp/www' not a directory
cpu% mv /n/ftp/www/blabla* .
226-Transfer complete.
226-Transfer complete.
mv: can't stat /n/ftp/www/blabla*: '/n/ftp/www' file does not exist
cpu%

cpu% ls /n/ftp/blah
226-Transfer complete.
ls: /n/ftp/blah: file does not exist
cpu% ls /n/ftp/blahblahlbalh
ls: /n/ftp/blahblahlbalh: '/n/ftp/blahblahlbalh' file does not exist
cpu% ls /n/ftp/ftpblah
ls: /n/ftp/ftpblah: '/n/ftp/ftpblah' file does not exist
cpu% ls /n/ftp/www/blah
226-Transfer complete.
ls: /n/ftp/www/blah: file does not exist


andrey

side note: sending email from a root account can be
considered an insult on this list :) i've renamed 'root' to
'glenda' on my freebsd machine anyway -- much more aesthetically
pleasing :)

On Wed, 23 Oct 2002, root wrote:

> Hi,
> writing to a non-existent directory gives a strange error message:
>
> term% mv /n/ftp/neXt/biology/rel* /n/ftp/neXt/text
> mv: /n/ftp/neXt not a directory
> ========================
>
> term% ls /n/ftp/neXt/text
> ls: /n/ftp/neXt/text: '/n/ftp/neXt' file does not exist
> term% ls /n/ftp/neXt
> /n/ftp/neXt/3D_reconstruction
> /n/ftp/neXt/biology
> /n/ftp/neXt/imaging
> /n/ftp/neXt/libs
> /n/ftp/neXt/rc
>
> Regards,
> ++pac.
> <pac7@post.cz>, for now
>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-23 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-23 14:06 [9fans] ftpfs: cosmetic bug root
2002-10-23 14:58 ` andrey mirtchovski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).