Check if file exists
Is there a way to check if a file exists in the current directory through code?
I don't want to access this file per say, I just want to verify that it already exists in the directory. Thanks, Jassel41 |
You can use the os.path.isfile command to check for file existence.
Code:
import os |
That's perfect, thank you so much.
|
All times are GMT -7. The time now is 08:00 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC