﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35513	Add a `seprarate_dirname_file`name method in core file storage	Fournet Enzo	nobody	"In `/files/storage/base.py` file, here's some code that separating `filename` and `dirname` so here we can add a `separate_dirname_filename` method that allows us to modify how Django separates the `filename` from the `dirname` when storing a file without fully rewriting any method that needs to perform this separation. This can be useful when a file has a double extension, such as `.json.sbom` or anything similar, and we don't want to break the extension.


Method example :

{{{
def seprarate_dirname_filename(self, filename):
        """"""
        Return a tuple of dirname and filename.
        This method can be overridden to customize how the filename is split.
        """"""
        return os.path.split(filename)
}}}


With this upgrade, we are able to let people override the `Storage` Class and only rewrite this new method to be sure that Django don't broke some specific file name or extension, that needed."	Uncategorized	closed	Core (Other)	5.1	Normal	duplicate	Storage File Core Storage		Unreviewed	0	0	0	0	0	0
