-2
I need help from you to implement a python code to encode the filenames in Base64 and name it right away and then code and then decode back the filenames of those files.
import os
import base64
path= '/home/usuario/arquivos'
for n in listdir(path):
with open(path+"/"+n,'rb')as efiles:
base=base64.b64decode(efiles.encode('ascii'))
os.rename(path+"/"+n, path+"/"+)
We are not forum or help site, we are one Q&A website. Most questions are closed because people don’t understand this. The title is reasonable, but the text structure is not. It should be something like this: I’m trying to do this, this is my code, is giving this error, I tried to fix it but it didn’t work, how to proceed. See [Ask] and do our [tour]
– Augusto Vasques
Please edit the question to limit it to a specific problem with sufficient detail to identify an appropriate answer.
–