Last active
May 20, 2017 18:07
-
-
Save bixb0012/8233dae93a5106aa05eaf59fe628d9eb to your computer and use it in GitHub Desktop.
Python: Get File Geodatabase System Properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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