format Directory

private open fun formatDirectory(directory: String): String

Method to format the pathname of a directory

Return

the pathname formatted as String, sample path formatted: directory/

Parameters

directory

: the raw pathname to format, sample path: directory