From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrey mirtchovski To: 9fans@cse.psu.edu Subject: Re: [9fans] ftpfs: cosmetic bug In-Reply-To: <20021023140631.GA219@next.gli.cas.cz> Message-ID: <20021023083800.A37298-100000@fbsd.acl.lanl.gov> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Wed, 23 Oct 2002 08:58:48 -0600 Topicbox-Message-UUID: 0b36bd28-eacb-11e9-9e20-41e7f4b1d025 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. > , for now >