Ensures that the passed path is on the local file system, fetching it to the java.io.tmpdir if necessary. If pig.jars.relative.to.dfs is true and dfs is not null, then a relative path is assumed to be relative to the passed dfs active directory. Else they are assumed to be relative to the local work
(Properties properties, String filePath)
| 753 | * directory. |
| 754 | */ |
| 755 | public static FetchFileRet fetchFile(Properties properties, String filePath) throws IOException { |
| 756 | return fetchFilesInternal(properties, filePath, false)[0]; |
| 757 | } |
| 758 | |
| 759 | /** |
| 760 | * Ensures that the passed files pointed to by path are on the local file system, |
no test coverage detected