ArcGIS 10.3.1; Python 2.7.11
The file DOES exist but reporting that it does not. The syntax looks correct to my newbie eyes.
******************************************************************************************************************
import arcpy
arcpy.env.workspace = "C:\\Users\\kkirkeby\\Desktop\\GIS-4080\\Lesson4_Data\\Lesson4_Data"
#Variables
out_folder_path = 'C:\\Users\\kkirkeby\\Desktop\\GIS-4080\\Lesson4_Data\\Lesson4_Data'
gdb_name = 'L4E5'
gdb_fullPath = out_folder_path +'/' + gdb_name
fclist = arcpy.ListFeatureClasses()
fcIn = 0
fcOut = 0
# Create gdb if it doesn't exist.
if arcpy.Exists(gdb_fullPath):
print "Geodatabase already exist"
else:
print "Geodatabase does not exist. Creating..."
print arcpy.Exists(gdb_fullPath)
print gdb_fullPath
# arcpy.CreateFileGDB_management(out_folder_path, gdb_name)
******************************************************************************************************************
Output:
================================ RESTART ================================
Geodatabase does not exist. Creating...
False
C:\Users\kkirkeby\Desktop\GIS-4080\Lesson4_Data\Lesson4_Data/L4E5