Skip to content

Commit

Permalink
Recording list: return empty list when recording folder doesn't exist (
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolk99 authored Oct 31, 2023
1 parent 83a4108 commit d34683b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jellyfish/component/hls/recording.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ defmodule Jellyfish.Component.HLS.Recording do
def list_all() do
case File.ls(root_directory()) do
{:ok, files} -> {:ok, Enum.filter(files, &exists?(&1))}
{:error, :enoent} -> {:ok, []}
{:error, _reason} -> :error
end
end
Expand Down

0 comments on commit d34683b

Please sign in to comment.