All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.file.FileReference.kt Maven / Gradle / Ivy

The newest version!
package ru.casperix.file

data class FileReference(val type: FilePathType, val path: String) {
	companion object {
		fun classpath(path: String): FileReference {
			return FileReference(FilePathType.CLASSPATH, path)
		}

		fun external(path: String): FileReference {
			return FileReference(FilePathType.EXTERNAL, path)
		}

		fun internal(path: String): FileReference {
			return FileReference(FilePathType.INTERNAL, path)
		}

		fun absolute(path: String): FileReference {
			return FileReference(FilePathType.ABSOLUTE, path)
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy