Esri / Esri/developer-support

rename: src should be string....

Open
#354 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
289
Forks
174
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.