Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: os.path.isdir(<whatever>) returns always True
Post: RE: os.path.isdir(<whatever>) returns always True

@Gribouillis ?? Why it does not work then? I am not comparing things. I am checking if something is True or False. I just want to know whether a directory exists or not. How should I do it? It giv...
Fabrizio General Coding Help 3 4,694 Dec-04-2018, 02:51 PM
    Thread: os.path.isdir(<whatever>) returns always True
Post: os.path.isdir(<whatever>) returns always True

I am running a Python script, which is supposed to check whether a directory already exists: import os #!/usr/bin/env python source_dir = <inexistent directory> if (os.path.isdir(source_dir))...
Fabrizio General Coding Help 3 4,694 Dec-04-2018, 02:22 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020