public void doOpenFile ( File [ ] files ) { if ( files != null ) { if ( files . length == 1 ) { File f = files [ 0 ] ; if ( f . isFile ( ) ) { String modFileName = f . getAbsolutePath ( ) ; int i = modFileName . lastIndexOf ( File . separatorChar ) ; searchPath = modFileName . substring ( 0 , i ) ; loadMultimediaOrPlayListFile ( Helpers . createURLfromFile ( f ) ) ; } else if ( f . isDirectory ( ) ) { searchPath = f . getAbsolutePath ( ) ; } } else { playlistRecieved ( null , PlayList . createNewListWithFiles ( files , false , false ) , null ) ; } } }
Open a new File