ProjectPathDecoder

works.iterative.claude.core.log.ProjectPathDecoder

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def decode(dirName: String): String

Decodes a Claude project directory name to a best-effort filesystem path.

Decodes a Claude project directory name to a best-effort filesystem path.

Claude encodes project paths by replacing each / separator with -. This reverses the encoding by replacing every - with /. The result is ambiguous when original path segments contained - characters; callers should validate against the filesystem if accuracy is required.

Examples:

  • "-home-mph-Devel" → "/home/mph/Devel"
  • "-" → "/"
  • "" → ""

Attributes