# Solid Filesystem basic syntax help

**URL:** <https://forum.elixirforum.com/t/solid-filesystem-basic-syntax-help/43589>\
**Category:** Questions\
**Tags:** phoenix, solid\
**Created:** [November 3, 2021, 3:22am UTC](https://forum.elixirforum.com/t/solid-filesystem-basic-syntax-help/43589 "2021-11-03T03:22:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niccolox](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/niccolox/32/2601_2.png) [@niccolox](https://forum.elixirforum.com/u/niccolox)\
**Post date:** [November 3, 2021, 3:22am UTC](https://forum.elixirforum.com/t/solid-filesystem-basic-syntax-help/43589/1 "2021-11-03T03:22:50Z")

</div>

question about basic Filesystem usage for the Solid hex for Liquid templating. Cross-posting from Github [basic Filesystem usage syntax · Issue #96 · edgurgel/solid · GitHub](https://github.com/edgurgel/solid/issues/96)

what am I missing for filesystem usage in a simple Phoenix index action below?

```elixir
def index(conn, _params) do
    template_path = "/lib/app_web/templates/liquid/"
    file_system = Solid.LocalFileSystem.new(template_path)
    text = Solid.LocalFileSystem.full_path(file_system, "hello")
    render(conn, text)
end

```

```elixir
/lib/app_web/templates/liquid/_hello.liquid
hello

```

gives

```elixir
    ** (FunctionClauseError) no function clause matching in String.match?/2
        (elixir 1.12.2) lib/string.ex:2259: String.match?(%Solid.LocalFileSystem{pattern: "_%s.liquid", root: "/lib/app_web/templates/liquid/"}, ~r/^[^.\/][a-zA-Z0-9_\/]+$/)
        (solid 0.10.0) lib/solid/file_system.ex:84: Solid.LocalFileSystem.full_path/2

```

no doubt missing some basic config or awareness around the correct syntax

---

<div class="post-metadata">

**Author:** ![outlog](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@outlog](https://forum.elixirforum.com/u/outlog)\
**Post date:** [November 3, 2021, 9:00am UTC](https://forum.elixirforum.com/t/solid-filesystem-basic-syntax-help/43589/2 "2021-11-03T09:00:59Z")

</div>

maybe you need a `Path.absname("foo")` eg

template\_path = `Path.absname("/lib/app_web/templates/liquid/")`

also the docs for solid are not coherent on `Solid.LocalFileSystem.full_path` according to code the argument order is `Solid.LocalFileSystem.full_path( "hello", file_system)` (yours is opposite) - maybe PR a doc fix..
