FileSystemExceptionExplanation extension Null safety

Adds cross-platform extensions that give explanations to common problems when accessing files.

on

Properties

isDirectoryNotEmpty bool
Occurs when you try to non-recursively delete a directory but it contains files.
read-only
isNoSuchFileOrDirectory bool
Occurs when the requested file or directory does not exist; or its parent directory does not exist.
read-only

Methods

isAndroidError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on Android.
isFuchsiaError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on Fuchsia.
isIosError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on iOS.
isLinuxError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on Linux.
isMacOsError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on macOS.
isWindowsError(int errorCode) bool
Returns true if the exception was caused by error with code errorCode on Windows.