Here's what I get (personal information edited out):
$ python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib.transport import get_transport
>>> t = get_transport('ftp://<username>:<password>@<ftphost>/<directory>');
>>> t.stat('.');
<bzrlib.transport.ftp.FtpStatResult object at 0x9bb39ec>
>>> '%o' % t.stat('.').st_mode
'40000'
>>>
I think it's worth noting you are using SFTP while I'm hitting the bug with plain FTP.
Here's what I get (personal information edited out):
$ python :<password> @<ftphost> /<directory> '); transport. ftp.FtpStatResu lt object at 0x9bb39ec>
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from bzrlib.transport import get_transport
>>> t = get_transport('ftp://<username>
>>> t.stat('.');
<bzrlib.
>>> '%o' % t.stat('.').st_mode
'40000'
>>>
I think it's worth noting you are using SFTP while I'm hitting the bug with plain FTP.