Package com.intuit.karate
Class FileUtils
java.lang.Object
com.intuit.karate.FileUtils
- Author:
- pthomas3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddeleteDirectory(File file) static Stringstatic Stringstatic FileUtils.OsTypestatic FileUtils.OsTypestatic booleanstatic booleanstatic FeatureCallparseFeatureAndCallTag(String path) static StringUtils.PairparsePathAndTags(String text) static voidrenameFileIfZeroBytes(String fileName) static byte[]static byte[]toBytes(InputStream is) static byte[]static InputStreamtoInputStream(String text) static StringtoString(byte[] bytes) static Stringstatic StringtoString(InputStream is) static voidwriteToFile(File file, byte[] data) static voidwriteToFile(File file, String data)
-
Field Details
-
KARATE_TELEMETRY
public static final boolean KARATE_TELEMETRY -
KARATE_VERSION
-
KARATE_META
-
USER_UUID
-
WORKING_DIR
-
-
Method Details
-
parsePathAndTags
-
parseFeatureAndCallTag
-
toString
-
toString
-
toBytes
-
toBytes
-
toString
-
toBytes
-
copy
-
writeToFile
-
writeToFile
-
toInputStream
-
deleteDirectory
-
renameFileIfZeroBytes
-
getBuildDir
-
isOsWindows
public static boolean isOsWindows() -
isOsMacOsX
public static boolean isOsMacOsX() -
getOsName
-
getOsType
-
getOsType
-