Joba Asks: What can I do when my object detection model learns background images instead the objects? But if it is a networked drive they probably will not because quite often the files are stored on a Nas and they are only accessing the files via Windows because my application can run on Windows but not on the Nas. The reason I need is isLocal() is my program renames files and there is an option for the user to restrict path length to 259 characters because longer lengths cause problems for Windows Explorer, but if they are modifying a remote drive then not usual to enforce this requirement, I will add more detail to question.įor example the application renames music files if they are eon local drive to be used by Windows then they may want to enforce that limit. (Level.SEVERE, ex.getMessage(), ex) Ĭan this be achieved another way, or is there a way I can still access these sun classes ? SONGKONG-2186:Can be null if unmapped network driveĮlse if(shellFolder.getFolderColumnValue(i)=null) If(shellFolder.getFolderColumnValue(i)!=null & ((String)shellFolder.getFolderColumnValue(i)).startsWith("\\")) & ((String) shellFolder.getFolderColumnValue(i)).startsWith(WindowsShellFileSystemType.LOCAL_DISK))Įlse if (cols.getTitle().equals(WINDOWS_SHELL_ATTRIBUTES)) If (cols.getTitle().equals(WINDOWS_SHELL_SIZE) ShellFolderColumnInfo cols = shellFolder.getFolderColumns() ShellFolder shellFolder = ShellFolder.getShellFolder(root.toFile()) Path root = Paths.get(newPath).getRoot() Public static boolean isLocal(String newPath) * Is this a local drive, only works for Windows machine because relies on underlying Windows code Public static final String WINDOWS_SHELL_SIZE = "Size" Public static final String WINDOWS_SHELL_ITEM_TYPE = "Item type" Public static final String WINDOWS_SHELL_ATTRIBUTES = "Attributes" * Only Windows can load these methods because of reliance on sun classes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |