| 10 | | String name = f.getName(); |
| 11 | | int per = name.lastIndexOf("."); |
| 12 | | if(per > 0){ |
| 13 | | String suffix = name.substring(per); |
| 14 | | if(".vsq".equalsIgnoreCase(suffix)){ |
| 15 | | return true; |
| 16 | | } |
| 17 | | if(".mid".equalsIgnoreCase(suffix)){ |
| 18 | | return true; |
| | 10 | if(f.isDirectory()){ |
| | 11 | return true; |
| | 12 | } |
| | 13 | else if(f.isFile()){ |
| | 14 | String name = f.getName(); |
| | 15 | int per = name.lastIndexOf("."); |
| | 16 | if(per > 0){ |
| | 17 | String suffix = name.substring(per); |
| | 18 | if(".vsq".equalsIgnoreCase(suffix)){ |
| | 19 | return true; |
| | 20 | } |
| | 21 | if(".mid".equalsIgnoreCase(suffix)){ |
| | 22 | return true; |
| | 23 | } |