mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
fix: Windows test failures and add Windows CI support (#273)
Signed-off-by: Drew Cain <groksrc@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@ Create Date: 2025-08-19 22:06:00.000000
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
|
||||
@@ -106,8 +106,15 @@ class DirectoryService:
|
||||
List of DirectoryNode objects matching the criteria
|
||||
"""
|
||||
# Normalize directory path
|
||||
# Strip ./ prefix if present (handles relative path notation)
|
||||
if dir_name.startswith("./"):
|
||||
dir_name = dir_name[2:] # Remove "./" prefix
|
||||
|
||||
# Ensure path starts with "/"
|
||||
if not dir_name.startswith("/"):
|
||||
dir_name = f"/{dir_name}"
|
||||
|
||||
# Remove trailing slashes except for root
|
||||
if dir_name != "/" and dir_name.endswith("/"):
|
||||
dir_name = dir_name.rstrip("/")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user