HUGO
[SOLVED] Check if .File is Directory?
support
bep
February 14, 2018, 4:30pm
2
Try:
IsDir
.
https://golang.org/pkg/os/#FileInfo
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
How to check whether a file exists in the folder?
support
3
3931
January 1, 2018
Conditionally checking for non existent variable
support
7
2322
August 31, 2016
readDir in my .md and .html
support
7
3150
November 3, 2015
Recursive data file parsing?
support
10
1300
June 15, 2020
List all files and subdirectories in directory using template
support
6
687
June 30, 2023