
![]() |
Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
|
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.97.14.90] |
![]() |
|
Сообщ.
#1
,
|
|
|
сама функция:
static String GetCreationTime(File f) throws IOException, ParseException{ BasicFileAttributes date = Files.readAttributes(f.toPath(), BasicFileAttributes.class); return date.creationTime().toString(); } Выдает ошибку на этой строчке: BasicFileAttributes date = Files.readAttributes(f.toPath(), BasicFileAttributes.class); Exception in thread "main" java.nio.file.NoSuchFileException: C:\test\test\folder0\folder0\folder0\folder1\folder0 at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown Source) at java.nio.file.Files.readAttributes(Unknown Source) at Main.GetCreationTime(Main.java:185) Повторяю , путь f правильный! |
![]() |
Сообщ.
#2
,
|
|
COMODO (а мож, и другие антивирусы) умеет искажать адрес файла. Попробуй отключить антивирус.
|
![]() |
Сообщ.
#3
,
|
|
Открой командную строку, вставь туда
![]() ![]() dir C:\test\test\folder0\folder0\folder0\folder1\folder0 что пишет? |