Generating valid file names #1397
Replies: 1 comment 2 replies
-
|
The presence of both Functional DifferencesThe two functions implement slightly different logic and sanitization rules:
Why not pathvalidate?While
Tip If you are contributing a new skill or plugin, it is generally recommended to use the version in Future ConsolidationThe duplication is a known byproduct of the framework's "organic" growth mentioned in the README. Consolidating these into a single, unified utility is a valid architectural improvement that would reduce confusion and ensure consistent sanitization across the codebase. Are you running into a specific case where these two functions produce conflicting results for your use case? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In
helpers/files.pythere's a function safe_file_name, there's also a function safe_filename inhelpers/security.py. Then there's a project pathvalidate.Is this incidental or intentional?
If it's intentional, what's the reasoning behind the duplication?
Beta Was this translation helpful? Give feedback.
All reactions