January 9, 20233 yr Hey guys, so I'm having a bit of an issue here. Made a discord bot in python, creates file in location where script is, a simple .csv file. But, here's the issue and I can't quite figure out a fix for it. In summary - my bot creates a file but I've no idea where the flip it's being created This is the docker info. This is the unraid directory and this is what the console for the docker shows me. but the problem is... erhm, well yas you can see. I can't see the file anywhere in the explorer... I need to be able to backup the file and sometimes manually edit it also need access for it so i can open it with excel. What am I doing wrong? and how can I resolve this issue? Thanks! Edited January 9, 20233 yr by vkmicro
January 9, 20233 yr I don't use that but your appdata is mapped to app in the container, which is a folder you can see in your screenshot, but you haven't created the file in that folder. Only mapped folders can be accessed outside a container
January 10, 20233 yr Author File should be auto-created by a python script. File creation code try: with open('users.csv', 'r') as csvfile: pass except FileNotFoundError: with open('users.csv', 'w', newline='') as csvfile: writer = csv.writer(csvfile)
January 10, 20233 yr Author Solution You're right! I resolved the issue at last. The issue was with how I had the shell script set up and how it was calling my script old new Edited January 10, 20233 yr by vkmicro
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.