Package org.jenkinsci.remoting.util
Class PathUtils
java.lang.Object
org.jenkinsci.remoting.util.PathUtils
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PathUtils
extends Object
Utilities for
Path
handling.-
Method Summary
-
Method Details
-
fileToPath
@NonNull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Path fileToPath(@NonNull File file) throws IOException - Parameters:
file
- File- Returns:
- Resulting path
- Throws:
IOException
- Conversion error caused byInvalidPathException
- Since:
- 3.14
-