WriteAmp Posted December 10, 2019 Share Posted December 10, 2019 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? Quote Link to comment
GroxyPod Posted December 10, 2019 Share Posted December 10, 2019 You might want to look into user scripts. I think you'd have to use bash, but if you're looking to do a re-occurring script, it might be a better solution. Quote Link to comment
FreeMan Posted December 11, 2019 Share Posted December 11, 2019 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? Quote Link to comment
WriteAmp Posted December 11, 2019 Author Share Posted December 11, 2019 Right, this would be a one time thing. I don't plan to move any folders around, just rename a large batch of files with a small set of rules. For example, I have a bunch of older files which I numbered without any padding (such as 1 instead of 01). Quote Link to comment
Recommended Posts
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.