Access Shares w/ Python using SMB


WriteAmp

Recommended Posts

Is it possible to modify the files on my shares through a script? For my use case, I would like to update the schema I used to name my files when I first built my server. I was looking into the pysmb module in Python, but am unable to list my shares even after authenticating. Is SMB the right approach or should I be running a script directly on the server instead?

Link to comment
5 hours ago, WriteAmp said:

I would like to update the schema I used to name my files when I first built my server

Does this mean you had a naming convention (for example: /Photos/<Camera>/<Date>/<picture#>.jpeg) that you were using and now you want to change the convention to something like /Photos/<Country>/<Camera>/<Date>/<picture#>.jpeg? i.e. this is a 1-time mass rename?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.