Esri / developer-support

Proof of concept developer code and samples to help be successful with all ArcGIS developer products (Python, NET, JavaScript, Android…). The repository is designed to be an exchange for sharing coding conventions and wisdom to developers at all skill levels.
Apache License 2.0
266 stars 164 forks source link

rename: src should be string.... #354

Open hdean83 opened 4 years ago

hdean83 commented 4 years ago

I know this is likely a very stupid question - so thanks in advance if someone could help.

I am getting the following error: TypeError Traceback (most recent call last) In [49]: Line 138: renameFile(currentAttachmentPath, newAttachmentPath)

In [49]: Line 47: os.rename(currentAttachmentPath, newAttachmentPath)

TypeError: rename: src should be string, bytes or os.PathLike, not list

I think this is a case of just not understanding where the string pathways should be inserted.