KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Currently, I have the following code... file_name = content.split('=')[1].replace('"', '') #file, gotten previously fileName = "/" + self.feed + "/" + self.address + "/" + file_name #add folders output = open(file_name, 'wb') output.write(url.read()) output.close() My goal is to have python write the file (under file_name) to a file in the "address" folder in the "feed" folder in the current directory (IE, where the python script is saved) I've looked into the os module, but I don't want to change my current directory and these directories do not already exist.
Tags (comma-separated)
Save Edits
Cancel