Test whether a file exists. @param filename to test @return true if file exists, false otherwise @throws IOException
(String filename)
| 1254 | * @throws IOException |
| 1255 | */ |
| 1256 | public boolean existsFile(String filename) throws IOException { |
| 1257 | ElementDescriptor elem = pigContext.getDfs().asElement(filename); |
| 1258 | return elem.exists(); |
| 1259 | } |
| 1260 | |
| 1261 | /** |
| 1262 | * Delete a file. |