Files
xpipe/core
Tejas Attarde dc033a8d5b fix(FilePath): getBaseName crashes on hidden files like .bashrc (#821)
* fix(FilePath): getBaseName crashes on hidden files like .bashrc

For hidden files the leading dot caused contains(".") to pass, then
lastIndexOf(".") returned 0, and substring(0, 0) produced an empty
string. FilePath.of("") throws IllegalArgumentException.

Replacing the contains check with lastIndexOf on the filename and
treating lastDot <= 0 as no-extension fixes both the no-dot and
hidden-file cases.

* fix(FilePath): throw IllegalStateException for dotfile in getBaseName

---------

Co-authored-by: Tejas <tejasae-afk@users.noreply.github.com>
2026-04-29 05:30:09 +02:00
..

Maven Central javadoc

XPipe Core

The XPipe core module contains all the shared core classes used by the API, beacon, and daemon implementation. It contains the following packages:

  • dialog: In API to create server/daemon side CLI dialogs.

  • store: The basic data store classes that are used by every data store implementation.

  • process: Base classes for the shell process handling implementation.

  • util: A few utility classes for serialization and more.

Every class is expected to be potentially used in the context of files and message exchanges. As a result, essentially all objects must be serializable/deserializable with jackson.