You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The SaveFileAction uses the directory path for trying to save the paste there. Instead it should append the paste key as filename like in the SaveJSONAction.
Steps To Reproduce
Steps to reproduce the behavior:
Mar 01 14:24:27 piframe python3[18321]: 2020-03-01 14:24:27,804 - pastepwn.core.actionhandler - ERROR - While performing the action 'SaveFileAction' the following exception occurred: '[Errno 21] Is a directory: '/opt/pastepwn/data/file''
Expected behavior
Pastes are saved under their individual key.
System
OS: Raspbian 9.11
Python Version: 3.5.3
PastePwn Version: 1.2.0
Solution
Change line to
with open(os.path.join(self.path, "{0}".format(paste.key)), "w") as file:
The text was updated successfully, but these errors were encountered:
pastepwn/pastepwn/actions/savefileaction.py
Line 26 in 26c9e42
Description
The SaveFileAction uses the directory path for trying to save the paste there. Instead it should append the paste key as filename like in the SaveJSONAction.
Steps To Reproduce
Steps to reproduce the behavior:
Config
Log
Expected behavior
Pastes are saved under their individual key.
System
Solution
Change line to
The text was updated successfully, but these errors were encountered: