From 74528268d92cde5ae080ff743432f9dd4d58bb9c Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Sat, 28 Oct 2017 17:07:00 +0300 Subject: [PATCH] Add FileSystemType enum for use in the entire project --- Sources/Common/FileSystemType.swift | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Sources/Common/FileSystemType.swift diff --git a/Sources/Common/FileSystemType.swift b/Sources/Common/FileSystemType.swift new file mode 100644 index 00000000..d5b22906 --- /dev/null +++ b/Sources/Common/FileSystemType.swift @@ -0,0 +1,21 @@ +// Copyright (c) 2017 Timofey Solomko +// Licensed under MIT License +// +// See LICENSE for license information + +import Foundation + +public enum FileSystemType { + // TODO: Sort alphabetically. + /** + One of many UNIX-like systems. + + - Note: Modern macOS systems also fall into this category. + */ + case unix + /// Older Macintosh systems. + case macintosh + case fat + case ntfs + case other +}