how to find out, whether a path is socket or device

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Mon Aug 30 02:09:27 CEST 2010


On Mon, 30 Aug 2010 01:46:16 +0200, News123 wrote:

> Hi,
> 
> Under Linux I'd like to find out, whether I got a file, a character
> device or a socket as a parameter.

See the stat module.



-- 
Steven



More information about the Python-list mailing list