preparser/art: replace local recursive mkdir implementation by vlc_mkdir_parent

This commit is contained in:
Gabriel LT 2024-03-12 13:16:12 +01:00 committed by Steve Lhomme
parent d5a785d8b6
commit b4653b287d
1 changed files with 1 additions and 13 deletions

View File

@ -40,19 +40,7 @@
static void ArtCacheCreateDir( char *psz_dir )
{
char * psz = psz_dir;
while( *psz )
{
while( *psz && *psz != DIR_SEP_CHAR) psz++;
if( !*psz ) break;
*psz = 0;
if( !EMPTY_STR( psz_dir ) )
vlc_mkdir( psz_dir, 0700 );
*psz = DIR_SEP_CHAR;
psz++;
}
vlc_mkdir( psz_dir, 0700 );
vlc_mkdir_parent(psz_dir, 0700);
}
static char* ArtCacheGetDirPath( const char *psz_arturl, const char *psz_artist,