Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bixb0012/8233dae93a5106aa05eaf59fe628d9eb to your computer and use it in GitHub Desktop.
Save bixb0012/8233dae93a5106aa05eaf59fe628d9eb to your computer and use it in GitHub Desktop.
Python: Get File Geodatabase System Properties
# Reference: 1) https://docs.python.org/3/library/time.html
# 2) https://docs.python.org/3/library/os.path.html
from time import ctime
from os.path import getmtime, getctime, split
gdb = # Path to file geodatabase
# Example 1: Creation and Modficiation Dates
print "{}\t{}\t{}".format(split(gdb)[1],
ctime(getmtime(gdb)),
ctime(getctime(gdb)))
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment