AS the title suggests, how can I whether a GDB file is valid using arcpy? One approach is, only checking the whether the name ends with
.gdb, but that's not a robust approach. Because a normal file can be ended with
.gdb, where GDBs are essentially folders to OS. So how can I do that?
The following code is used to List Workspaces, in this case, File Geodatabases. It does not check for the file extension
Where @Get Spatial's answer is partially correct, but it doesn't solve the problem directly. So answering my own question:
It prints the type of the object given path is directing. For folders, it prints