diff --git a/Package.swift b/Package.swift index 3d5543627..7bad06be4 100644 --- a/Package.swift +++ b/Package.swift @@ -64,7 +64,7 @@ let package = Package( .library(name: "NIOFoundationCompat", targets: ["NIOFoundationCompat"]), .library(name: "NIOWebSocket", targets: ["NIOWebSocket"]), .library(name: "NIOTestUtils", targets: ["NIOTestUtils"]), - .library(name: "_NIOFileSystem", targets: ["_NIOFileSystem"]), + .library(name: "_NIOFileSystem", targets: ["_NIOFileSystem", "NIOFileSystem"]), .library(name: "_NIOFileSystemFoundationCompat", targets: ["_NIOFileSystemFoundationCompat"]), ], targets: [ @@ -242,7 +242,7 @@ let package = Package( swiftSettings: strictConcurrencySettings ), .target( - name: "NIOFileSystem", + name: "NIOFS", dependencies: [ "NIOCore", "NIOPosix", @@ -252,7 +252,7 @@ let package = Package( swiftCollections, swiftSystem, ], - path: "Sources/NIOFileSystem", + path: "Sources/NIOFS", exclude: includePrivacyManifest ? [] : ["PrivacyInfo.xcprivacy"], resources: includePrivacyManifest ? [.copy("PrivacyInfo.xcprivacy")] : [], swiftSettings: strictConcurrencySettings + [ @@ -260,12 +260,12 @@ let package = Package( ] ), .target( - name: "NIOFileSystemFoundationCompat", + name: "NIOFSFoundationCompat", dependencies: [ - "NIOFileSystem", + "NIOFS", "NIOFoundationCompat", ], - path: "Sources/NIOFileSystemFoundationCompat", + path: "Sources/NIOFSFoundationCompat", swiftSettings: strictConcurrencySettings ), @@ -296,6 +296,11 @@ let package = Package( path: "Sources/_NIOFileSystemFoundationCompat", swiftSettings: strictConcurrencySettings ), + .target( + name: "NIOFileSystem", + dependencies: ["_NIOFileSystem"], + swiftSettings: strictConcurrencySettings + ), // MARK: - Examples @@ -578,10 +583,10 @@ let package = Package( swiftSettings: strictConcurrencySettings ), .testTarget( - name: "NIOFileSystemTests", + name: "NIOFSTests", dependencies: [ "NIOCore", - "NIOFileSystem", + "NIOFS", swiftAtomics, swiftCollections, swiftSystem, @@ -591,11 +596,11 @@ let package = Package( ] ), .testTarget( - name: "NIOFileSystemIntegrationTests", + name: "NIOFSIntegrationTests", dependencies: [ "NIOCore", "NIOPosix", - "NIOFileSystem", + "NIOFS", "NIOFoundationCompat", ], exclude: [ @@ -607,10 +612,10 @@ let package = Package( swiftSettings: strictConcurrencySettings ), .testTarget( - name: "NIOFileSystemFoundationCompatTests", + name: "NIOFSFoundationCompatTests", dependencies: [ - "NIOFileSystem", - "NIOFileSystemFoundationCompat", + "NIOFS", + "NIOFSFoundationCompat", ], swiftSettings: strictConcurrencySettings ), diff --git a/Sources/NIOFileSystem/Array+FileSystem.swift b/Sources/NIOFS/Array+FileSystem.swift similarity index 100% rename from Sources/NIOFileSystem/Array+FileSystem.swift rename to Sources/NIOFS/Array+FileSystem.swift diff --git a/Sources/NIOFileSystem/ArraySlice+FileSystem.swift b/Sources/NIOFS/ArraySlice+FileSystem.swift similarity index 100% rename from Sources/NIOFileSystem/ArraySlice+FileSystem.swift rename to Sources/NIOFS/ArraySlice+FileSystem.swift diff --git a/Sources/NIOFileSystem/BufferedReader.swift b/Sources/NIOFS/BufferedReader.swift similarity index 100% rename from Sources/NIOFileSystem/BufferedReader.swift rename to Sources/NIOFS/BufferedReader.swift diff --git a/Sources/NIOFileSystem/BufferedWriter.swift b/Sources/NIOFS/BufferedWriter.swift similarity index 100% rename from Sources/NIOFileSystem/BufferedWriter.swift rename to Sources/NIOFS/BufferedWriter.swift diff --git a/Sources/NIOFileSystem/ByteBuffer+FileSystem.swift b/Sources/NIOFS/ByteBuffer+FileSystem.swift similarity index 100% rename from Sources/NIOFileSystem/ByteBuffer+FileSystem.swift rename to Sources/NIOFS/ByteBuffer+FileSystem.swift diff --git a/Sources/NIOFileSystem/ByteCount.swift b/Sources/NIOFS/ByteCount.swift similarity index 100% rename from Sources/NIOFileSystem/ByteCount.swift rename to Sources/NIOFS/ByteCount.swift diff --git a/Sources/NIOFileSystem/Convenience.swift b/Sources/NIOFS/Convenience.swift similarity index 100% rename from Sources/NIOFileSystem/Convenience.swift rename to Sources/NIOFS/Convenience.swift diff --git a/Sources/NIOFileSystem/DirectoryEntries.swift b/Sources/NIOFS/DirectoryEntries.swift similarity index 100% rename from Sources/NIOFileSystem/DirectoryEntries.swift rename to Sources/NIOFS/DirectoryEntries.swift diff --git a/Sources/NIOFileSystem/DirectoryEntry.swift b/Sources/NIOFS/DirectoryEntry.swift similarity index 100% rename from Sources/NIOFileSystem/DirectoryEntry.swift rename to Sources/NIOFS/DirectoryEntry.swift diff --git a/Sources/NIOFileSystem/Docs.docc/Extensions/DirectoryFileHandleProtocol.md b/Sources/NIOFS/Docs.docc/Extensions/DirectoryFileHandleProtocol.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/Extensions/DirectoryFileHandleProtocol.md rename to Sources/NIOFS/Docs.docc/Extensions/DirectoryFileHandleProtocol.md diff --git a/Sources/NIOFileSystem/Docs.docc/Extensions/FileHandleProtocol.md b/Sources/NIOFS/Docs.docc/Extensions/FileHandleProtocol.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/Extensions/FileHandleProtocol.md rename to Sources/NIOFS/Docs.docc/Extensions/FileHandleProtocol.md diff --git a/Sources/NIOFileSystem/Docs.docc/Extensions/FileSystemProtocol.md b/Sources/NIOFS/Docs.docc/Extensions/FileSystemProtocol.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/Extensions/FileSystemProtocol.md rename to Sources/NIOFS/Docs.docc/Extensions/FileSystemProtocol.md diff --git a/Sources/NIOFileSystem/Docs.docc/Extensions/ReadableFileHandleProtocol.md b/Sources/NIOFS/Docs.docc/Extensions/ReadableFileHandleProtocol.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/Extensions/ReadableFileHandleProtocol.md rename to Sources/NIOFS/Docs.docc/Extensions/ReadableFileHandleProtocol.md diff --git a/Sources/NIOFileSystem/Docs.docc/Extensions/WritableFileHandleProtocol.md b/Sources/NIOFS/Docs.docc/Extensions/WritableFileHandleProtocol.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/Extensions/WritableFileHandleProtocol.md rename to Sources/NIOFS/Docs.docc/Extensions/WritableFileHandleProtocol.md diff --git a/Sources/NIOFileSystem/Docs.docc/index.md b/Sources/NIOFS/Docs.docc/index.md similarity index 100% rename from Sources/NIOFileSystem/Docs.docc/index.md rename to Sources/NIOFS/Docs.docc/index.md diff --git a/Sources/NIOFS/Exports.swift b/Sources/NIOFS/Exports.swift new file mode 100644 index 000000000..2b73a5878 --- /dev/null +++ b/Sources/NIOFS/Exports.swift @@ -0,0 +1,21 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftNIO open source project +// +// Copyright (c) 2023 Apple Inc. and the SwiftNIO project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftNIO project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + +// These types are used in our public API; expose them to make +// life easier for users. +@_exported import enum SystemPackage.CInterop +@_exported import struct SystemPackage.Errno +@_exported import struct SystemPackage.FileDescriptor +@_exported import struct SystemPackage.FilePath +@_exported import struct SystemPackage.FilePermissions diff --git a/Sources/NIOFileSystem/FileChunks.swift b/Sources/NIOFS/FileChunks.swift similarity index 100% rename from Sources/NIOFileSystem/FileChunks.swift rename to Sources/NIOFS/FileChunks.swift diff --git a/Sources/NIOFileSystem/FileHandle.swift b/Sources/NIOFS/FileHandle.swift similarity index 100% rename from Sources/NIOFileSystem/FileHandle.swift rename to Sources/NIOFS/FileHandle.swift diff --git a/Sources/NIOFileSystem/FileHandleProtocol.swift b/Sources/NIOFS/FileHandleProtocol.swift similarity index 100% rename from Sources/NIOFileSystem/FileHandleProtocol.swift rename to Sources/NIOFS/FileHandleProtocol.swift diff --git a/Sources/NIOFileSystem/FileInfo.swift b/Sources/NIOFS/FileInfo.swift similarity index 100% rename from Sources/NIOFileSystem/FileInfo.swift rename to Sources/NIOFS/FileInfo.swift diff --git a/Sources/NIOFileSystem/FileSystem.swift b/Sources/NIOFS/FileSystem.swift similarity index 100% rename from Sources/NIOFileSystem/FileSystem.swift rename to Sources/NIOFS/FileSystem.swift diff --git a/Sources/NIOFileSystem/FileSystemError+Syscall.swift b/Sources/NIOFS/FileSystemError+Syscall.swift similarity index 100% rename from Sources/NIOFileSystem/FileSystemError+Syscall.swift rename to Sources/NIOFS/FileSystemError+Syscall.swift diff --git a/Sources/NIOFileSystem/FileSystemError.swift b/Sources/NIOFS/FileSystemError.swift similarity index 100% rename from Sources/NIOFileSystem/FileSystemError.swift rename to Sources/NIOFS/FileSystemError.swift diff --git a/Sources/NIOFileSystem/FileSystemProtocol.swift b/Sources/NIOFS/FileSystemProtocol.swift similarity index 100% rename from Sources/NIOFileSystem/FileSystemProtocol.swift rename to Sources/NIOFS/FileSystemProtocol.swift diff --git a/Sources/NIOFileSystem/FileType.swift b/Sources/NIOFS/FileType.swift similarity index 100% rename from Sources/NIOFileSystem/FileType.swift rename to Sources/NIOFS/FileType.swift diff --git a/Sources/NIOFileSystem/IOStrategy.swift b/Sources/NIOFS/IOStrategy.swift similarity index 100% rename from Sources/NIOFileSystem/IOStrategy.swift rename to Sources/NIOFS/IOStrategy.swift diff --git a/Sources/NIOFileSystem/Internal/BufferedOrAnyStream.swift b/Sources/NIOFS/Internal/BufferedOrAnyStream.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/BufferedOrAnyStream.swift rename to Sources/NIOFS/Internal/BufferedOrAnyStream.swift diff --git a/Sources/NIOFileSystem/Internal/BufferedStream.swift b/Sources/NIOFS/Internal/BufferedStream.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/BufferedStream.swift rename to Sources/NIOFS/Internal/BufferedStream.swift diff --git a/Sources/NIOFileSystem/Internal/Cancellation.swift b/Sources/NIOFS/Internal/Cancellation.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/Cancellation.swift rename to Sources/NIOFS/Internal/Cancellation.swift diff --git a/Sources/NIOFileSystem/Internal/Concurrency Primitives/TokenBucket.swift b/Sources/NIOFS/Internal/Concurrency Primitives/TokenBucket.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/Concurrency Primitives/TokenBucket.swift rename to Sources/NIOFS/Internal/Concurrency Primitives/TokenBucket.swift diff --git a/Sources/NIOFileSystem/Internal/Concurrency Primitives/UnsafeTransfer.swift b/Sources/NIOFS/Internal/Concurrency Primitives/UnsafeTransfer.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/Concurrency Primitives/UnsafeTransfer.swift rename to Sources/NIOFS/Internal/Concurrency Primitives/UnsafeTransfer.swift diff --git a/Sources/NIOFileSystem/Internal/ParallelDirCopy.swift b/Sources/NIOFS/Internal/ParallelDirCopy.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/ParallelDirCopy.swift rename to Sources/NIOFS/Internal/ParallelDirCopy.swift diff --git a/Sources/NIOFileSystem/Internal/ParallelRemoval.swift b/Sources/NIOFS/Internal/ParallelRemoval.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/ParallelRemoval.swift rename to Sources/NIOFS/Internal/ParallelRemoval.swift diff --git a/Sources/NIOFileSystem/Internal/String+UnsafeUnititializedCapacity.swift b/Sources/NIOFS/Internal/String+UnsafeUnititializedCapacity.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/String+UnsafeUnititializedCapacity.swift rename to Sources/NIOFS/Internal/String+UnsafeUnititializedCapacity.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/CInterop.swift b/Sources/NIOFS/Internal/System Calls/CInterop.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/CInterop.swift rename to Sources/NIOFS/Internal/System Calls/CInterop.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/Errno.swift b/Sources/NIOFS/Internal/System Calls/Errno.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/Errno.swift rename to Sources/NIOFS/Internal/System Calls/Errno.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/FileDescriptor+Syscalls.swift b/Sources/NIOFS/Internal/System Calls/FileDescriptor+Syscalls.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/FileDescriptor+Syscalls.swift rename to Sources/NIOFS/Internal/System Calls/FileDescriptor+Syscalls.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/Mocking.swift b/Sources/NIOFS/Internal/System Calls/Mocking.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/Mocking.swift rename to Sources/NIOFS/Internal/System Calls/Mocking.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift b/Sources/NIOFS/Internal/System Calls/Syscall.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/Syscall.swift rename to Sources/NIOFS/Internal/System Calls/Syscall.swift diff --git a/Sources/NIOFileSystem/Internal/System Calls/Syscalls.swift b/Sources/NIOFS/Internal/System Calls/Syscalls.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/System Calls/Syscalls.swift rename to Sources/NIOFS/Internal/System Calls/Syscalls.swift diff --git a/Sources/NIOFileSystem/Internal/SystemFileHandle.swift b/Sources/NIOFS/Internal/SystemFileHandle.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/SystemFileHandle.swift rename to Sources/NIOFS/Internal/SystemFileHandle.swift diff --git a/Sources/NIOFileSystem/Internal/Utilities.swift b/Sources/NIOFS/Internal/Utilities.swift similarity index 100% rename from Sources/NIOFileSystem/Internal/Utilities.swift rename to Sources/NIOFS/Internal/Utilities.swift diff --git a/Sources/NIOFileSystem/NIOFilePath.swift b/Sources/NIOFS/NIOFilePath.swift similarity index 100% rename from Sources/NIOFileSystem/NIOFilePath.swift rename to Sources/NIOFS/NIOFilePath.swift diff --git a/Sources/NIOFileSystem/NIOFileSystemSendableMetatype.swift b/Sources/NIOFS/NIOFileSystemSendableMetatype.swift similarity index 100% rename from Sources/NIOFileSystem/NIOFileSystemSendableMetatype.swift rename to Sources/NIOFS/NIOFileSystemSendableMetatype.swift diff --git a/Sources/NIOFileSystem/OpenOptions.swift b/Sources/NIOFS/OpenOptions.swift similarity index 100% rename from Sources/NIOFileSystem/OpenOptions.swift rename to Sources/NIOFS/OpenOptions.swift diff --git a/Sources/NIOFileSystem/PrivacyInfo.xcprivacy b/Sources/NIOFS/PrivacyInfo.xcprivacy similarity index 100% rename from Sources/NIOFileSystem/PrivacyInfo.xcprivacy rename to Sources/NIOFS/PrivacyInfo.xcprivacy diff --git a/Sources/NIOFileSystem/String+FileSystem.swift b/Sources/NIOFS/String+FileSystem.swift similarity index 100% rename from Sources/NIOFileSystem/String+FileSystem.swift rename to Sources/NIOFS/String+FileSystem.swift diff --git a/Sources/NIOFileSystemFoundationCompat/Data+FileSystem.swift b/Sources/NIOFSFoundationCompat/Data+FileSystem.swift similarity index 98% rename from Sources/NIOFileSystemFoundationCompat/Data+FileSystem.swift rename to Sources/NIOFSFoundationCompat/Data+FileSystem.swift index 94615ed7a..2ddcddbce 100644 --- a/Sources/NIOFileSystemFoundationCompat/Data+FileSystem.swift +++ b/Sources/NIOFSFoundationCompat/Data+FileSystem.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// #if canImport(Darwin) || os(Linux) || os(Android) -import NIOFileSystem +import NIOFS import NIOCore import NIOFoundationCompat import struct Foundation.Data diff --git a/Sources/NIOFileSystemFoundationCompat/Date+FileInfo.swift b/Sources/NIOFSFoundationCompat/Date+FileInfo.swift similarity index 97% rename from Sources/NIOFileSystemFoundationCompat/Date+FileInfo.swift rename to Sources/NIOFSFoundationCompat/Date+FileInfo.swift index e2fdffe6c..5b4733cc2 100644 --- a/Sources/NIOFileSystemFoundationCompat/Date+FileInfo.swift +++ b/Sources/NIOFSFoundationCompat/Date+FileInfo.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem +import NIOFS import struct Foundation.Date diff --git a/Sources/NIOFileSystem/Exports.swift b/Sources/NIOFileSystem/Exports.swift index 2b73a5878..ae0bca2d8 100644 --- a/Sources/NIOFileSystem/Exports.swift +++ b/Sources/NIOFileSystem/Exports.swift @@ -2,7 +2,7 @@ // // This source file is part of the SwiftNIO open source project // -// Copyright (c) 2023 Apple Inc. and the SwiftNIO project authors +// Copyright (c) 2025 Apple Inc. and the SwiftNIO project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information @@ -12,10 +12,4 @@ // //===----------------------------------------------------------------------===// -// These types are used in our public API; expose them to make -// life easier for users. -@_exported import enum SystemPackage.CInterop -@_exported import struct SystemPackage.Errno -@_exported import struct SystemPackage.FileDescriptor -@_exported import struct SystemPackage.FilePath -@_exported import struct SystemPackage.FilePermissions +@_exported import _NIOFileSystem diff --git a/Tests/NIOFileSystemFoundationCompatTests/FileSystemFoundationCompatTests.swift b/Tests/NIOFSFoundationCompatTests/FileSystemFoundationCompatTests.swift similarity index 97% rename from Tests/NIOFileSystemFoundationCompatTests/FileSystemFoundationCompatTests.swift rename to Tests/NIOFSFoundationCompatTests/FileSystemFoundationCompatTests.swift index fe9721211..9566c32fa 100644 --- a/Tests/NIOFileSystemFoundationCompatTests/FileSystemFoundationCompatTests.swift +++ b/Tests/NIOFSFoundationCompatTests/FileSystemFoundationCompatTests.swift @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem -import NIOFileSystemFoundationCompat +import NIOFS +import NIOFSFoundationCompat import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemIntegrationTests/BufferedReaderTests.swift b/Tests/NIOFSIntegrationTests/BufferedReaderTests.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/BufferedReaderTests.swift rename to Tests/NIOFSIntegrationTests/BufferedReaderTests.swift index e0b7e8272..52fbd7c49 100644 --- a/Tests/NIOFileSystemIntegrationTests/BufferedReaderTests.swift +++ b/Tests/NIOFSIntegrationTests/BufferedReaderTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import NIOCore -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemIntegrationTests/BufferedWriterTests.swift b/Tests/NIOFSIntegrationTests/BufferedWriterTests.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/BufferedWriterTests.swift rename to Tests/NIOFSIntegrationTests/BufferedWriterTests.swift index 406f261d0..e025a91d3 100644 --- a/Tests/NIOFileSystemIntegrationTests/BufferedWriterTests.swift +++ b/Tests/NIOFSIntegrationTests/BufferedWriterTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import NIOCore -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemIntegrationTests/ConvenienceTests.swift b/Tests/NIOFSIntegrationTests/ConvenienceTests.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/ConvenienceTests.swift rename to Tests/NIOFSIntegrationTests/ConvenienceTests.swift index 776ce2acd..11f0e8b59 100644 --- a/Tests/NIOFileSystemIntegrationTests/ConvenienceTests.swift +++ b/Tests/NIOFSIntegrationTests/ConvenienceTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import NIOCore -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemIntegrationTests/FileHandleTests.swift b/Tests/NIOFSIntegrationTests/FileHandleTests.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/FileHandleTests.swift rename to Tests/NIOFSIntegrationTests/FileHandleTests.swift index 07a603b74..6de9b6f9c 100644 --- a/Tests/NIOFileSystemIntegrationTests/FileHandleTests.swift +++ b/Tests/NIOFSIntegrationTests/FileHandleTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import NIOCore -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import NIOFoundationCompat import NIOPosix import XCTest diff --git a/Tests/NIOFileSystemIntegrationTests/FileSystemTests+SPI.swift b/Tests/NIOFSIntegrationTests/FileSystemTests+SPI.swift similarity index 96% rename from Tests/NIOFileSystemIntegrationTests/FileSystemTests+SPI.swift rename to Tests/NIOFSIntegrationTests/FileSystemTests+SPI.swift index 172b81cd0..68f8089d5 100644 --- a/Tests/NIOFileSystemIntegrationTests/FileSystemTests+SPI.swift +++ b/Tests/NIOFSIntegrationTests/FileSystemTests+SPI.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import SystemPackage import XCTest diff --git a/Tests/NIOFileSystemIntegrationTests/FileSystemTests.swift b/Tests/NIOFSIntegrationTests/FileSystemTests.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/FileSystemTests.swift rename to Tests/NIOFSIntegrationTests/FileSystemTests.swift index 4186aae0a..cfc0820d1 100644 --- a/Tests/NIOFileSystemIntegrationTests/FileSystemTests.swift +++ b/Tests/NIOFSIntegrationTests/FileSystemTests.swift @@ -14,7 +14,7 @@ import NIOConcurrencyHelpers import NIOCore -@_spi(Testing) @testable import NIOFileSystem +@_spi(Testing) @testable import NIOFS import SystemPackage import XCTest diff --git a/Tests/NIOFileSystemIntegrationTests/Test Data/Foo.symlink b/Tests/NIOFSIntegrationTests/Test Data/Foo.symlink similarity index 100% rename from Tests/NIOFileSystemIntegrationTests/Test Data/Foo.symlink rename to Tests/NIOFSIntegrationTests/Test Data/Foo.symlink diff --git a/Tests/NIOFileSystemIntegrationTests/Test Data/Foo/README.txt b/Tests/NIOFSIntegrationTests/Test Data/Foo/README.txt similarity index 100% rename from Tests/NIOFileSystemIntegrationTests/Test Data/Foo/README.txt rename to Tests/NIOFSIntegrationTests/Test Data/Foo/README.txt diff --git a/Tests/NIOFileSystemIntegrationTests/Test Data/README.md b/Tests/NIOFSIntegrationTests/Test Data/README.md similarity index 100% rename from Tests/NIOFileSystemIntegrationTests/Test Data/README.md rename to Tests/NIOFSIntegrationTests/Test Data/README.md diff --git a/Tests/NIOFileSystemIntegrationTests/Test Data/README.md.symlink b/Tests/NIOFSIntegrationTests/Test Data/README.md.symlink similarity index 100% rename from Tests/NIOFileSystemIntegrationTests/Test Data/README.md.symlink rename to Tests/NIOFSIntegrationTests/Test Data/README.md.symlink diff --git a/Tests/NIOFileSystemIntegrationTests/XCTestExtensions.swift b/Tests/NIOFSIntegrationTests/XCTestExtensions.swift similarity index 99% rename from Tests/NIOFileSystemIntegrationTests/XCTestExtensions.swift rename to Tests/NIOFSIntegrationTests/XCTestExtensions.swift index f95066e68..725eec072 100644 --- a/Tests/NIOFileSystemIntegrationTests/XCTestExtensions.swift +++ b/Tests/NIOFSIntegrationTests/XCTestExtensions.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemTests/ByteCountTests.swift b/Tests/NIOFSTests/ByteCountTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/ByteCountTests.swift rename to Tests/NIOFSTests/ByteCountTests.swift index 9e9ea3425..dc15020f1 100644 --- a/Tests/NIOFileSystemTests/ByteCountTests.swift +++ b/Tests/NIOFSTests/ByteCountTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem +import NIOFS import XCTest class ByteCountTests: XCTestCase { diff --git a/Tests/NIOFileSystemTests/DirectoryEntriesTests.swift b/Tests/NIOFSTests/DirectoryEntriesTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/DirectoryEntriesTests.swift rename to Tests/NIOFSTests/DirectoryEntriesTests.swift index 8f1532162..f7c85268d 100644 --- a/Tests/NIOFileSystemTests/DirectoryEntriesTests.swift +++ b/Tests/NIOFSTests/DirectoryEntriesTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemTests/FileChunksTests.swift b/Tests/NIOFSTests/FileChunksTests.swift similarity index 98% rename from Tests/NIOFileSystemTests/FileChunksTests.swift rename to Tests/NIOFSTests/FileChunksTests.swift index ba6f4b931..353fee234 100644 --- a/Tests/NIOFileSystemTests/FileChunksTests.swift +++ b/Tests/NIOFSTests/FileChunksTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import NIOCore -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemTests/FileHandleTests.swift b/Tests/NIOFSTests/FileHandleTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/FileHandleTests.swift rename to Tests/NIOFSTests/FileHandleTests.swift index 22a3c9a00..06d9b32e8 100644 --- a/Tests/NIOFileSystemTests/FileHandleTests.swift +++ b/Tests/NIOFSTests/FileHandleTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import NIOPosix import XCTest diff --git a/Tests/NIOFileSystemTests/FileInfoTests.swift b/Tests/NIOFSTests/FileInfoTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/FileInfoTests.swift rename to Tests/NIOFSTests/FileInfoTests.swift index 333198218..5aa745473 100644 --- a/Tests/NIOFileSystemTests/FileInfoTests.swift +++ b/Tests/NIOFSTests/FileInfoTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import CNIOLinux -import NIOFileSystem +import NIOFS import XCTest #if canImport(Darwin) diff --git a/Tests/NIOFileSystemTests/FileOpenOptionsTests.swift b/Tests/NIOFSTests/FileOpenOptionsTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/FileOpenOptionsTests.swift rename to Tests/NIOFSTests/FileOpenOptionsTests.swift index 9f82e85c3..4894d6a33 100644 --- a/Tests/NIOFileSystemTests/FileOpenOptionsTests.swift +++ b/Tests/NIOFSTests/FileOpenOptionsTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import XCTest final class FileOpenOptionsTests: XCTestCase { diff --git a/Tests/NIOFileSystemTests/FilePathTests.swift b/Tests/NIOFSTests/FilePathTests.swift similarity index 97% rename from Tests/NIOFileSystemTests/FilePathTests.swift rename to Tests/NIOFSTests/FilePathTests.swift index 111e2d0e0..19fce4281 100644 --- a/Tests/NIOFileSystemTests/FilePathTests.swift +++ b/Tests/NIOFSTests/FilePathTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) @testable import NIOFileSystem +@_spi(Testing) @testable import NIOFS import SystemPackage import XCTest diff --git a/Tests/NIOFileSystemTests/FileSystemErrorTests.swift b/Tests/NIOFSTests/FileSystemErrorTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/FileSystemErrorTests.swift rename to Tests/NIOFSTests/FileSystemErrorTests.swift index 1045926e1..8e9ee6f2a 100644 --- a/Tests/NIOFileSystemTests/FileSystemErrorTests.swift +++ b/Tests/NIOFSTests/FileSystemErrorTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import XCTest final class FileSystemErrorTests: XCTestCase { diff --git a/Tests/NIOFileSystemTests/FileTypeTests.swift b/Tests/NIOFSTests/FileTypeTests.swift similarity index 98% rename from Tests/NIOFileSystemTests/FileTypeTests.swift rename to Tests/NIOFSTests/FileTypeTests.swift index 669178a30..602c00aec 100644 --- a/Tests/NIOFileSystemTests/FileTypeTests.swift +++ b/Tests/NIOFSTests/FileTypeTests.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import XCTest #if canImport(Darwin) diff --git a/Tests/NIOFileSystemTests/Internal/CancellationTests.swift b/Tests/NIOFSTests/Internal/CancellationTests.swift similarity index 98% rename from Tests/NIOFileSystemTests/Internal/CancellationTests.swift rename to Tests/NIOFSTests/Internal/CancellationTests.swift index 7ae2a6375..fe7ae1f08 100644 --- a/Tests/NIOFileSystemTests/Internal/CancellationTests.swift +++ b/Tests/NIOFSTests/Internal/CancellationTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import Atomics -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) diff --git a/Tests/NIOFileSystemTests/Internal/Concurrency Primitives/BufferedStreamTests.swift b/Tests/NIOFSTests/Internal/Concurrency Primitives/BufferedStreamTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/Internal/Concurrency Primitives/BufferedStreamTests.swift rename to Tests/NIOFSTests/Internal/Concurrency Primitives/BufferedStreamTests.swift index 7084a0c58..8f98722d8 100644 --- a/Tests/NIOFileSystemTests/Internal/Concurrency Primitives/BufferedStreamTests.swift +++ b/Tests/NIOFSTests/Internal/Concurrency Primitives/BufferedStreamTests.swift @@ -14,7 +14,7 @@ import XCTest -@testable import NIOFileSystem +@testable import NIOFS @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) final class BufferedStreamTests: XCTestCase { diff --git a/Tests/NIOFileSystemTests/Internal/MockingInfrastructure.swift b/Tests/NIOFSTests/Internal/MockingInfrastructure.swift similarity index 99% rename from Tests/NIOFileSystemTests/Internal/MockingInfrastructure.swift rename to Tests/NIOFSTests/Internal/MockingInfrastructure.swift index 4f92d81ff..294c22a0c 100644 --- a/Tests/NIOFileSystemTests/Internal/MockingInfrastructure.swift +++ b/Tests/NIOFSTests/Internal/MockingInfrastructure.swift @@ -19,7 +19,7 @@ // //See https://swift.org/LICENSE.txt for license information -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import SystemPackage import XCTest diff --git a/Tests/NIOFileSystemTests/Internal/SyscallTests.swift b/Tests/NIOFSTests/Internal/SyscallTests.swift similarity index 99% rename from Tests/NIOFileSystemTests/Internal/SyscallTests.swift rename to Tests/NIOFSTests/Internal/SyscallTests.swift index ba66953c9..451575f7b 100644 --- a/Tests/NIOFileSystemTests/Internal/SyscallTests.swift +++ b/Tests/NIOFSTests/Internal/SyscallTests.swift @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// import CNIOLinux -@_spi(Testing) import NIOFileSystem +@_spi(Testing) import NIOFS import SystemPackage import XCTest diff --git a/Tests/NIOFileSystemTests/XCTestExtensions.swift b/Tests/NIOFSTests/XCTestExtensions.swift similarity index 98% rename from Tests/NIOFileSystemTests/XCTestExtensions.swift rename to Tests/NIOFSTests/XCTestExtensions.swift index 4b952cd03..371c50b30 100644 --- a/Tests/NIOFileSystemTests/XCTestExtensions.swift +++ b/Tests/NIOFSTests/XCTestExtensions.swift @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -import NIOFileSystem +import NIOFS import XCTest @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)