mirror of https://code.videolan.org/videolan/vlc
preparser/art: replace local recursive mkdir implementation by vlc_mkdir_parent
This commit is contained in:
parent
d5a785d8b6
commit
b4653b287d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue