<?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 arcpy file permission shutil copy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050692#M60887</link>
    <description>&lt;P&gt;Hi all, I created a geoprocessing task and it perfectly works.&lt;BR /&gt;At the end I see that I have the same problem of this thread with arcgis server with linux:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-server-on-linux-python-unable-to-change-file-permissions/m-p/272973" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcgis-server-on-linux-python-unable-to-change-file-permissions/m-p/272973&lt;/A&gt;&lt;BR /&gt;Does someone have the solution? Or I cant do anything to change the files permission from arcgis python?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 14:51:30 GMT</pubDate>
    <dc:creator>NatashaManzuiga</dc:creator>
    <dc:date>2021-04-23T14:51:30Z</dc:date>
    <item>
      <title>arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050692#M60887</link>
      <description>&lt;P&gt;Hi all, I created a geoprocessing task and it perfectly works.&lt;BR /&gt;At the end I see that I have the same problem of this thread with arcgis server with linux:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/arcgis-server-on-linux-python-unable-to-change-file-permissions/m-p/272973" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcgis-server-on-linux-python-unable-to-change-file-permissions/m-p/272973&lt;/A&gt;&lt;BR /&gt;Does someone have the solution? Or I cant do anything to change the files permission from arcgis python?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 14:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050692#M60887</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2021-04-23T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050787#M60888</link>
      <description>&lt;P&gt;What version of python are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 17:07:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050787#M60888</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-04-23T17:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050975#M60889</link>
      <description>&lt;P&gt;python can change file permissions, if it is possible&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3/library/os.html" target="_blank"&gt;os — Miscellaneous operating system interfaces — Python 3.9.4 documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/16249440/changing-file-permission-in-python" target="_blank" rel="noopener"&gt;Changing file permission in Python - Stack Overflow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 23:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1050975#M60889</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-23T23:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051213#M60893</link>
      <description>&lt;P&gt;I'm using &lt;STRONG&gt;ArcGIS Enterprise 10.8&lt;/STRONG&gt; so I think:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Python 2.7.16, NumPy 1.9.3, and matplotlib 1.5.2&lt;/LI&gt;&lt;LI&gt;Python 3.6.9, NumPy 1.16.5, and matplotlib 3.1.1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Naty&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 08:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051213#M60893</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2021-04-26T08:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051250#M60894</link>
      <description>&lt;P&gt;both python versions have the "os" module, just check their version of "os" for exact syntax&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 10:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051250#M60894</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-26T10:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy file permission shutil copy</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051274#M60896</link>
      <description>&lt;P&gt;There are several ways to call chmod via python. You can use os.chmod() from os and you can use Path.chmod() from pathlib depending on personally preference. Also, if you only need to set the user permissions os and shutil have chown() functions.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3/library/os.html#os.chown" target="_self"&gt;OS Python Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3/library/pathlib.html?highlight=pathlib#pathlib.Path.chmod" target="_self"&gt;Python Pathlib Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/3/library/shutil.html#shutil.chown" target="_self"&gt;Shutil Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 12:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-file-permission-shutil-copy/m-p/1051274#M60896</guid>
      <dc:creator>MarkKinnaman</dc:creator>
      <dc:date>2021-04-26T12:38:42Z</dc:date>
    </item>
  </channel>
</rss>

