equal
deleted
inserted
replaced
267 // Add all second level folders |
267 // Add all second level folders |
268 File[] secondLevelFolders = desktop.listFiles(); |
268 File[] secondLevelFolders = desktop.listFiles(); |
269 Arrays.sort(secondLevelFolders); |
269 Arrays.sort(secondLevelFolders); |
270 for (File secondLevelFolder : secondLevelFolders) { |
270 for (File secondLevelFolder : secondLevelFolders) { |
271 Win32ShellFolder2 folder = (Win32ShellFolder2) secondLevelFolder; |
271 Win32ShellFolder2 folder = (Win32ShellFolder2) secondLevelFolder; |
272 if (!folder.isFileSystem() || folder.isDirectory()) { |
272 if (!folder.isFileSystem() || (folder.isDirectory() && !folder.isLink())) { |
273 folders.add(folder); |
273 folders.add(folder); |
274 // Add third level for "My Computer" |
274 // Add third level for "My Computer" |
275 if (folder.equals(drives)) { |
275 if (folder.equals(drives)) { |
276 File[] thirdLevelFolders = folder.listFiles(); |
276 File[] thirdLevelFolders = folder.listFiles(); |
277 if (thirdLevelFolders != null && thirdLevelFolders.length > 0) { |
277 if (thirdLevelFolders != null && thirdLevelFolders.length > 0) { |