Skip to content

Function: statSync()

statSync(path): Stats | undefined

Best-effort fs.stat (sync). Returns undefined for a blank path or when the path can’t be stat’d (missing, permission denied, …), so callers can treat “not there” and “not accessible” the same and never handle an exception.

string

Stats | undefined