python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
how to close a file when open with os.close()
I have a piece of code which would save a file and after once clicked the tkinter button for saving it, python saves it every 5 minutes. But you could also open the saved file: so I need a piece of co...

user17825405
Votes: 0
Answers: 0
How to restore files that are deleted by os.remove function in python?
I am just writing a python code to delete files older than 30 days. While running it, Unfortunately, I gave the wrong path and some of my precious data was deleted.
Can you please tell me how can I re...

Shubham Deswal
Votes: 0
Answers: 1
How to get the exit code for "os.popen(command)"?
I am using a shell script to run the commands.
When running the command using this
os.popen(command).readline()
I want to get the exit code of that command.
Please let me know how we get the exit cod...
Shanthi K
Votes: 0
Answers: 1
Having issue while implementing recursion
I'm trying to move the files from one source directory to another destination directory considering the destination directory has the same file and folder structure as the source directory.
source dir...
Shivam
Votes: 0
Answers: 1