<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Programmatically return Feature Class file size and date modified in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330566#M25703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Unless its a shapefile, I don't believe there is currently a way to do this with arcpy in v10.1.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good point.&amp;nbsp; I guess you'd have to implement some kind of your own logging process on the gdb to maintain info on modification dates.&amp;nbsp; Not sure exactly how you'd work out the size of GDB elements too other than creating individual .shp files or gdb's of each item.&amp;nbsp; ewww.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 18:27:03 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2013-05-21T18:27:03Z</dc:date>
    <item>
      <title>Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330563#M25700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There doesn't appear to be a function in arcpy to return the file size of a feature class or it's date modified timestamp. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any idea how to do this? I know there is a property somewhere because you can setup ArcCatalog to display the information. However, I want to see it returned in a Python Script so that I can write a two-way synchronization function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 13:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330563#M25700</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2013-05-21T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330564#M25701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There doesn't appear to be a function in arcpy to return the file size of a feature class or it's date modified timestamp. &lt;BR /&gt;&lt;BR /&gt;Anyone have any idea how to do this? I know there is a property somewhere because you can setup ArcCatalog to display the information. However, I want to see it returned in a Python Script so that I can write a two-way synchronization function.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;os.path has both of the methods you want (I have not worked with these myself).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;os.path.getmtime&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;os.path.getsize&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.python.org/2/library/os.path.html"&gt;http://docs.python.org/2/library/os.path.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 14:24:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330564#M25701</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-21T14:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330565#M25702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unless its a shapefile, I don't believe there is currently a way to do this with arcpy in v10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A trick though to getting this to work is to make a seperate FGBD for each FC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code might give you some ideas on how to get the size:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import glob
def compactAndReportFGDB(fgdbPath): 
&amp;nbsp;&amp;nbsp;&amp;nbsp; oldFgdbSize = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp; for file in glob.glob(fgdbPath + "\\*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oldFgdbSize = oldFgdbSize + os.path.getsize(file)
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Compact_management(fgdbPath)
&amp;nbsp;&amp;nbsp;&amp;nbsp; newFgdbSize = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp; for file in glob.glob(fgdbPath + "\\*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newFgdbSize = newFgdbSize + os.path.getsize(file)
&amp;nbsp;&amp;nbsp;&amp;nbsp; compactPct = str(int((oldFgdbSize - newFgdbSize) / float(oldFgdbSize) * 100))
&amp;nbsp;&amp;nbsp;&amp;nbsp; return compactPct&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330565#M25702</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-11T15:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330566#M25703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Unless its a shapefile, I don't believe there is currently a way to do this with arcpy in v10.1.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good point.&amp;nbsp; I guess you'd have to implement some kind of your own logging process on the gdb to maintain info on modification dates.&amp;nbsp; Not sure exactly how you'd work out the size of GDB elements too other than creating individual .shp files or gdb's of each item.&amp;nbsp; ewww.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330566#M25703</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-21T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330567#M25704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By the looks of this &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/23914/how-to-get-the-size-of-a-file-geodatabase-feature-class-on-disk"&gt;http://gis.stackexchange.com/questions/23914/how-to-get-the-size-of-a-file-geodatabase-feature-class-on-disk&lt;/A&gt;&lt;SPAN&gt; you could probably get at this info with ArcObects someway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: yup.. &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/24242/how-to-programmatically-determine-the-size-of-a-feature-class-in-a-file-geodatab"&gt;http://gis.stackexchange.com/questions/24242/how-to-programmatically-determine-the-size-of-a-feature-class-in-a-file-geodatab&lt;/A&gt;&lt;SPAN&gt; ArcObjects will get it done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 18:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330567#M25704</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2013-05-21T18:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330568#M25705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I initially thought the same thing but was skeptical since Windows doesn't natively understand the GDB format. Needless to say, this raises an error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330568#M25705</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2013-05-21T20:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330569#M25706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By the looks of this &lt;A href="http://gis.stackexchange.com/questions/23914/how-to-get-the-size-of-a-file-geodatabase-feature-class-on-disk"&gt;http://gis.stackexchange.com/questions/23914/how-to-get-the-size-of-a-file-geodatabase-feature-class-on-disk&lt;/A&gt; you could probably get at this info with ArcObects someway.&lt;BR /&gt;&lt;BR /&gt;edit: yup.. &lt;A href="http://gis.stackexchange.com/questions/24242/how-to-programmatically-determine-the-size-of-a-feature-class-in-a-file-geodatab"&gt;http://gis.stackexchange.com/questions/24242/how-to-programmatically-determine-the-size-of-a-feature-class-in-a-file-geodatab&lt;/A&gt; ArcObjects will get it done.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually saw this before posting here, but I'm not sure how to leverage ArcObjects from Python, if I can at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330569#M25706</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2013-05-21T20:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330570#M25707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've never used ArcObjects via Python but you can: &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python"&gt;http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330570#M25707</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-05-21T20:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330571#M25708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since it's not currently possible through anything I've seen in Python, I've added it to the ideas site.&lt;/SPAN&gt;&lt;A href="https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eOq"&gt;https://c.na9.visual.force.com/apex/ideaView?id=087E00000004eOq&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330571#M25708</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2013-05-21T20:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330572#M25709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've never used ArcObjects via Python but you can: &lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python"&gt;http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sweet. I'll give it a go. thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 21:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330572#M25709</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2013-05-21T21:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330573#M25710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So digging around a little more, I found a nifty little featurecompare function in the management toolbox. It seems to give me a decent solution to flagging child fcs that are different from the parentfc. According to the the ArcGIS Resources &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Feature_Compare/001700000004000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;Help File&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;The comparison tools result object will be 'true' when no differences are found and 'false' when differences are detected.&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I should be able to return a True or False from the result object. It seems however that my result object is not returning anything. Does it matter that the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z0000000n000000#ESRI_SECTION1_4BF92292703248F09479E3D45CB23904" rel="nofollow noopener noreferrer" target="_blank"&gt;result object is a unicode string&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont understand why my result object is coming up empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
childfc = r"C:\Temp\MyGDB\Stores"
parentfc = r"\\sharedrive\ParentGDB\Stores"

result = arcpy.FeatureCompare_management(parentfc, childfc, "DID", "ATTRIBUTES_ONLY", "", "", "", "", "", "", "NO_CONTINUE_COMPARE")

print "Comparison Result is: " + result
result.GetOutput
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shell Results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Comparison Result is:
&amp;lt;bound method Result.getOutput of &amp;lt;Result ''&amp;gt;&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330573#M25710</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2021-12-11T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330574#M25711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I dont understand why my result object is coming up empty.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doh!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Index Values help...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CODE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
childfc = r"C:\Temp\MyGDB\Stores"
parentfc = r"\\sharedrive\ParentGDB\Stores"

result = arcpy.FeatureCompare_management(parentfc, childfc, "DID", "ATTRIBUTES_ONLY", "", "", "", "", "", "", "NO_CONTINUE_COMPARE")

print "Comparison Result is: " + result.getOutput(1)
result.GetOutput(1)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shell Results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Comparison Result is: false
u'false'
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:39:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330574#M25711</guid>
      <dc:creator>JohnDye</dc:creator>
      <dc:date>2021-12-11T15:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330575#M25712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried juanf.martinez.carmona's code using comtypes.client and it worked fine on a system running ArcGIS 10.0. Sadly running the script on an ArcGIS 10.1 system leads to the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "D:\pyTest\FeatureClass_date.py", line 12, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pwf = comtypes.client.CreateObject(esriDataSourcesGDB.FileGDBWorkspaceFactory, interface=esriGeodatabase.IWorkspaceFactory)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'module' object has no attribute 'FileGDBWorkspaceFactory'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have an idea, what might be the problem here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330575#M25712</guid>
      <dc:creator>DanielBauer</dc:creator>
      <dc:date>2013-08-22T05:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330576#M25713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting the modified date of a .gdb table/feature class took some real acrobatics, but I was finally able to get it done. I started out with zero ArcObjects experience but a good dose of Python and arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step one was to carefully follow the instructions here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python" title="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python" rel="nofollow noopener noreferrer" target="_blank"&gt;How do I access ArcObjects from Python? - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/37672/arcobjects-comtypes-at-10-1" title="http://gis.stackexchange.com/questions/37672/arcobjects-comtypes-at-10-1" rel="nofollow noopener noreferrer" target="_blank"&gt;python - ArcObjects + comtypes at 10.1 - Geographic Information Systems Stack Exchange&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I got the "create point" code working (from the example in the first link), I opened up the Snippets.py code and inserted the following function under the *** Standalone *** section, where gdb is the full path to the gdb and tableName is the table name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;def GetModifiedDate(gdb, tableName):&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Setup&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetStandaloneModules()&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitStandalone()&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import comtypes.gen.esriSystem as esriSystem&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import comtypes.gen.esriGeoDatabase as esriGeoDatabase&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import comtypes.gen.esriDataSourcesGDB as esriDataSourcesGDB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;

&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Open the FGDB&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pWS = Standalone_OpenFileGDB(gdb)&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create empty Properties Set&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPropSet = NewObj(esriSystem.PropertySet, esriSystem.IPropertySet)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pPropSet.SetProperty("database", gdb)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;

&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Cast the FGDB as IFeatureWorkspace&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pFW = CType(pWS, esriGeoDatabase.IFeatureWorkspace)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;

&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Open the table&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pTab = pFW.OpenTable(tableName)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;

&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Cast the table as a IDatasetFileStat&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDFS = CType(pTab, esriGeoDatabase.IDatasetFileStat)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;

&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Get the date modified&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/CODE&gt;
&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return pDFS.StatTime(2)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I created a script that implemented the function (set up for a custom script tool but could be used as a stand-alone as well):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import Snippets
import datetime
import arcpy
import sys

# User Params
file_gdb = arcpy.GetParameterAsText(0) # Path to FGDB
table_name = arcpy.GetParameterAsText(1) # Table or feature class name

arcpy.env.workspace = file_gdb

if file_gdb.split(".")[-1] != "gdb":
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("The input workspace is not a file geodatabase!")
&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit()

def doIt(file_gdb, table_name):

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Call GetModifiedDate function to get the number of seconds
&amp;nbsp;&amp;nbsp;&amp;nbsp; num_seconds = Snippets.GetModifiedDate(file_gdb, arcpy.Describe(table_name).baseName)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Translate the number of seconds into a formatted date
&amp;nbsp;&amp;nbsp;&amp;nbsp; date_modified = datetime.datetime.fromtimestamp(num_seconds).strftime('%Y-%m-%d %H:%M:%S')

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Report the result
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(date_modified)
&amp;nbsp;&amp;nbsp;&amp;nbsp; return date_modified

doIt(file_gdb, arcpy.Describe(table_name).baseName)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sincerely hope this helps! Thanks to all the people who got me to an actual solution. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330576#M25713</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2021-12-11T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330577#M25714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you distributed this across your organization?&amp;nbsp; I can see right away it will fail in a Citrix environment.&amp;nbsp; Too bad because this type of programmatic access is pretty good to have!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 17:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330577#M25714</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-03-02T17:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330578#M25715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I haven't. I developed this solution as part of some R&amp;amp;D on a redesign of an SDE data loading process we have. We need to detect changes in datasets in a range of formats so we can determine which of them have been updated and need to be loaded to our SDE geodatabases. Our current app was set up by my supervisor in C# ArcObjects. It works well but has a few shortcomings and has proven tricky to maintain over the years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, what indicates that it will fail in a Citrix environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330578#M25715</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2015-03-02T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330579#M25716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Out of curiosity, what indicates that it will fail in a Citrix environment?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will fail on your import comtypes statement(s)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330579#M25716</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-03-02T18:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330580#M25717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered using editor tracking instead? This will create columns in the attribute table indicating the edits made to the feature class, this you can access using python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/manage-data/editing-fundamentals/about-tracking-an-editor-s-changes-to-data.htm" title="http://desktop.arcgis.com/en/desktop/latest/manage-data/editing-fundamentals/about-tracking-an-editor-s-changes-to-data.htm"&gt;About tracking an editor's changes to data—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like mentioned in the previous posts, unless it is a shapefile, the date modified for file geodatabase feature class cannot be displayed in ArcCatalog. Even the edits made to the feature class, does not affect the time stamp on the geodatabase itself until all the locks are released (this is also considered an "edit" on the gdb) i.e. till the application is closed which may not be the time you stopped editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/43164" title="http://support.esri.com/en/knowledgebase/techarticles/detail/43164"&gt;43164 - In ArcCatalog, why is the time stamp incorrect on the date modified field of a file geodatabase feature class?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, editor tracking is definitely better option if you want to track changes made to the feature class. Feature Compare essentially compares the properties of two feature classes in terms of geometry, attrribute, schema and spatial reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Vandana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 18:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330580#M25717</guid>
      <dc:creator>VandanaRaghunathan</dc:creator>
      <dc:date>2015-03-02T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330581#M25718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Micah, thanks for this clear start to finish example of using python arcobjects. I hope you don't mind me taking the liberty of folding it into my (very slowly) growing py-arcobjects module(?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/maphew/arcplus/blob/master/arcplus/ao/ao.py" title="https://github.com/maphew/arcplus/blob/master/arcplus/ao/ao.py"&gt;arcplus/ao.py at master · maphew/arcplus · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 22:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330581#M25718</guid>
      <dc:creator>MattWilkie2</dc:creator>
      <dc:date>2015-05-13T22:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically return Feature Class file size and date modified</title>
      <link>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330582#M25719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't mind at all. Thanks for the shout-out. Happy scripting!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 15:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/programmatically-return-feature-class-file-size/m-p/330582#M25719</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2015-05-14T15:46:29Z</dc:date>
    </item>
  </channel>
</rss>

