equal
deleted
inserted
replaced
136 if (isTrue(env, "create")) { |
136 if (isTrue(env, "create")) { |
137 try (OutputStream os = Files.newOutputStream(zfpath, CREATE_NEW, WRITE)) { |
137 try (OutputStream os = Files.newOutputStream(zfpath, CREATE_NEW, WRITE)) { |
138 new END().write(os, 0, forceEnd64); |
138 new END().write(os, 0, forceEnd64); |
139 } |
139 } |
140 } else { |
140 } else { |
141 throw new FileSystemNotFoundException(zfpath.toString()); |
141 throw new NoSuchFileException(zfpath.toString()); |
142 } |
142 } |
143 } |
143 } |
144 // sm and existence check |
144 // sm and existence check |
145 zfpath.getFileSystem().provider().checkAccess(zfpath, AccessMode.READ); |
145 zfpath.getFileSystem().provider().checkAccess(zfpath, AccessMode.READ); |
146 boolean writeable = AccessController.doPrivileged( |
146 boolean writeable = AccessController.doPrivileged( |