ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.56k stars 185 forks source link

Exporting single response creates folder, instead of single file #1952

Open carstenhag opened 7 months ago

carstenhag commented 7 months ago

Description

Exporting a single response, creates a folder that includes said response as a file.

Steps to Reproduce

Screenshot 2024-03-01 at 15 31 32

Screenshot 2024-03-01 at 15 31 47

Screenshot 2024-03-01 at 15 32 32

Current Behavior

I wanted to export the response as .json but it asked me about the folder extension. This is necessary, as it wants to create a folder. But to me it is weird, because there's no need for a folder when only a single file is exported.

Expected Behavior

As only a single thing is exported, a file is enough.

Then again, if you sometimes export 30 files and sometimes 1, it may be inconsistent. But I think this is acceptable.

Environment

NghiaTranUIT commented 7 months ago

Thanks. Let me improve the behavior.