5ec90a5fff
Signed-off-by: Michael Mayer <michael@photoprism.app>
16 lines
259 B
Go
16 lines
259 B
Go
package fs
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSymlinksSupported(t *testing.T) {
|
|
t.Run("TempDir", func(t *testing.T) {
|
|
ok, err := SymlinksSupported(os.TempDir())
|
|
assert.NoError(t, err)
|
|
assert.True(t, ok)
|
|
})
|
|
}
|