checking mode of a file

Martin Pool mbp at canonical.com
Fri Jul 11 10:11:43 BST 2008


On Fri, Jul 11, 2008 at 6:58 PM, Toni Ruottu <toni.ruottu at iki.fi> wrote:
>  hello
>
> I'm looking for a transport neutral way to find out whether some path is
> pointing to a directory or just an ordinary file? The local transport
> has _check_mode_and_size, but that's just the local transport.

S_ISDIR(transport.stat(path).st_mode) I think.


-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list