(Path pathToDir)
| 390 | } |
| 391 | |
| 392 | public static String userForDir(Path pathToDir) { |
| 393 | try { |
| 394 | FileOwnerAttributeView ownerAttributeView = |
| 395 | Files.getFileAttributeView(pathToDir, FileOwnerAttributeView.class); |
| 396 | return ownerAttributeView.getOwner().getName(); |
| 397 | } catch (IOException e) { |
| 398 | return "N/A"; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | private static int exitOrException(String msg) throws AssertionFailureException { |
| 403 | if (useExitCode) { |