func changeFileSize(fileHandle: NIOFileHandle, size: Int64) async throwsChanges the file size of fileHandle to size.
func createDirectory(path: String, withIntermediateDirectories: Bool, mode: NIOPOSIXFileMode) async throwsCreates directory at path on a private thread pool.
func createDirectory(path: String, withIntermediateDirectories: Bool, mode: NIOPOSIXFileMode, eventLoop: any EventLoop) -> EventLoopFuture<Void>Creates directory at path on a private thread pool which is separate from any EventLoop thread.
func listDirectory(path: String) async throws -> [NIODirectoryEntry]List contents of the directory at path on a private thread pool.
func listDirectory(path: String, eventLoop: any EventLoop) -> EventLoopFuture<[NIODirectoryEntry]>List contents of the directory at path on a private thread pool which is separate from any EventLoop thread.
func lstat(path: String) async throws -> statReturns information about a file at path on a private thread pool.
func lstat(path: String, eventLoop: any EventLoop) -> EventLoopFuture<stat>Returns information about a file at path on a private thread pool which is separate from any EventLoop thread.
func openFile(_deprecatedPath: String, eventLoop: any EventLoop) -> EventLoopFuture<(NIOFileHandle, FileRegion)>Open the file at path for reading on a private thread pool which is separate from any EventLoop thread.
func openFile(_deprecatedPath: String, mode: NIOFileHandle.Mode, flags: NIOFileHandle.Flags, eventLoop: any EventLoop) -> EventLoopFuture<NIOFileHandle>Open the file at path with specified access mode and POSIX flags on a private thread pool which is separate from any EventLoop thread.
func read(fileHandle: NIOFileHandle, byteCount: Int, allocator: ByteBufferAllocator) async throws -> ByteBufferRead byteCount bytes from fileHandle in NonBlockingFileIO’s private thread pool.
func read(fileHandle: NIOFileHandle, byteCount: Int, allocator: ByteBufferAllocator, eventLoop: any EventLoop) -> EventLoopFuture<ByteBuffer>Read byteCount bytes from fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func read(fileHandle: NIOFileHandle, fromOffset: Int64, byteCount: Int, allocator: ByteBufferAllocator) async throws -> ByteBufferRead byteCount bytes starting at fileOffset from fileHandle in NonBlockingFileIO’s private thread pool .
func read(fileHandle: NIOFileHandle, fromOffset: Int64, byteCount: Int, allocator: ByteBufferAllocator, eventLoop: any EventLoop) -> EventLoopFuture<ByteBuffer>Read byteCount bytes starting at fileOffset from fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func read(fileRegion: FileRegion, allocator: ByteBufferAllocator) async throws -> ByteBufferRead a FileRegion in NonBlockingFileIO’s private thread pool.
func read(fileRegion: FileRegion, allocator: ByteBufferAllocator, eventLoop: any EventLoop) -> EventLoopFuture<ByteBuffer>Read a FileRegion in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func readChunked(fileHandle: NIOFileHandle, byteCount: Int, chunkSize: Int, allocator: ByteBufferAllocator, eventLoop: any EventLoop, chunkHandler: @escaping (ByteBuffer) -> EventLoopFuture<Void>) -> EventLoopFuture<Void>Read byteCount bytes in chunks of chunkSize bytes from fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func readChunked(fileHandle: NIOFileHandle, fromOffset: Int64, byteCount: Int, chunkSize: Int, allocator: ByteBufferAllocator, eventLoop: any EventLoop, chunkHandler: @escaping (ByteBuffer) -> EventLoopFuture<Void>) -> EventLoopFuture<Void>Read byteCount bytes from offset fileOffset in chunks of chunkSize bytes from fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func readChunked(fileRegion: FileRegion, chunkSize: Int, allocator: ByteBufferAllocator, eventLoop: any EventLoop, chunkHandler: @escaping (ByteBuffer) -> EventLoopFuture<Void>) -> EventLoopFuture<Void>Read a FileRegion in chunks of chunkSize bytes on NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func readFileSize(fileHandle: NIOFileHandle) async throws -> Int64Returns the length of the file associated with fileHandle.
func readFileSize(fileHandle: NIOFileHandle, eventLoop: any EventLoop) -> EventLoopFuture<Int64>Returns the length of the file in bytes associated with fileHandle.
func readlink(path: String) async throws -> StringReturns target of the symbolic link at path on a private thread pool.
func readlink(path: String, eventLoop: any EventLoop) -> EventLoopFuture<String>Returns target of the symbolic link at path on a private thread pool which is separate from any EventLoop thread.
func remove(path: String) async throwsRemoves the file at path on a private thread pool.
func remove(path: String, eventLoop: any EventLoop) -> EventLoopFuture<Void>Removes the file at path on a private thread pool which is separate from any EventLoop thread.
func rename(path: String, newName: String) async throwsRenames the file at path to newName on a private thread pool.
func rename(path: String, newName: String, eventLoop: any EventLoop) -> EventLoopFuture<Void>Renames the file at path to newName on a private thread pool which is separate from any EventLoop thread.
func symlink(path: String, to: String) async throwsCreates a symbolic link to a destination file at path on a private thread pool.
func symlink(path: String, to: String, eventLoop: any EventLoop) -> EventLoopFuture<Void>Creates a symbolic link to a destination file at path on a private thread pool which is separate from any EventLoop thread.
func unlink(path: String) async throwsRemoves symbolic link at path on a private thread pool which is separate from any EventLoop thread.
func unlink(path: String, eventLoop: any EventLoop) -> EventLoopFuture<Void>Removes symbolic link at path on a private thread pool which is separate from any EventLoop thread.
func withFileHandle<Result>(_deprecatedPath: String, mode: NIOFileHandle.Mode, flags: NIOFileHandle.Flags, (NIOFileHandle) async throws -> Result) async throws -> Resultfunc withFileRegion<Result>(_deprecatedPath: String, (FileRegion) async throws -> Result) async throws -> Resultfunc write(fileHandle: NIOFileHandle, buffer: ByteBuffer) async throwsWrite buffer to fileHandle in NonBlockingFileIO’s private thread pool.
func write(fileHandle: NIOFileHandle, buffer: ByteBuffer, eventLoop: any EventLoop) -> EventLoopFuture<()>Write buffer to fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.
func write(fileHandle: NIOFileHandle, toOffset: Int64, buffer: ByteBuffer) async throwsWrite buffer starting from toOffset to fileHandle in NonBlockingFileIO’s private thread pool.
func write(fileHandle: NIOFileHandle, toOffset: Int64, buffer: ByteBuffer, eventLoop: any EventLoop) -> EventLoopFuture<()>Write buffer starting from toOffset to fileHandle in NonBlockingFileIO’s private thread pool which is separate from any EventLoop thread.