mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 09:42:57 -07:00
Add split strip helper function
This commit is contained in:
parent
5197418cb8
commit
1311f688f2
1 changed files with 4 additions and 0 deletions
|
@ -408,6 +408,10 @@ def clean_filename(filename, replace='_'):
|
||||||
return cleaned_filename
|
return cleaned_filename
|
||||||
|
|
||||||
|
|
||||||
|
def split_strip(s, delimiter=','):
|
||||||
|
return [x.strip() for x in str(s).split(delimiter) if x.strip()]
|
||||||
|
|
||||||
|
|
||||||
def split_path(f):
|
def split_path(f):
|
||||||
"""
|
"""
|
||||||
Split a path into components, starting with the drive letter (if any). Given
|
Split a path into components, starting with the drive letter (if any). Given
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue