Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/   (Mizar Prover Version 8.1.15©)  Datei vom 6.10.2026 mit Größe 40 kB image not shown  

Quelle  FileUtilityNull.swift   Sprache: JAVA

 

import FileUtility
import Foundation

final class FileUtilityNull: FileUtilityProtocol {
    init() { /* no-op */ }

    var appCachesDirectory: URL? { nil }
    var appDocumentsDirectory: URL? { nil }
    var appTemporaryDirectory: URL { .temporaryDirectory }
    var appTemporaryUnencryptedDirectory: URL { appTemporaryDirectory }

    func appDataDirectory(appGroupID: String) -> URL? { nil }
    func attributesOfFileSystem(forPath path: String) throws -> [FileAttributeKey: Any] { [:] }
    func backup(of namePrefixes: [String], exclude: Bool, appGroupID: String) throws { /* no-op */ }
    func cleanTemporaryDirectory(olderThan: Date?) { /* no-op */ }
    func contentsOfDirectory(atPath path: String) throws -> [String] { [] }
    func contentsOfDirectory(
        at url: URL,
        includingPropertiesForKeys keys: [URLResourceKey]?,
        options mask: FileManager.DirectoryEnumerationOptions
    ) throws -> [URL] {
        []
    }

    func copy(from sourceURL: URL, to destinationURL: URL) throws { /* no-op */ }
    func createEmptyFile(atURL url: URL) throws { /* no-op */ }
    func createFile(
        atPath path: String,
        contents data: Data?,
        attributes attr: [FileAttributeKey: Any]?
    ) -> Bool { false }
    func createFileHandle(forReadingFromURL url: URL) throws -> FileHandle { FileHandle.nullDevice }
    func createFileHandle(forWritingToURL url: URL) throws -> FileHandle { FileHandle.nullDevice }
    func closeFileHandle(_ fileHandle: FileHandle) throws { /* no-op */ }
    func delete(at sourceURL: URL) throws { /* no-op */ }
    func delete(atPath path: String) throws { /* no-op */ }
    func deleteIfExists(at sourceURL: URL?) { /* no-op */ }
    func dir(at sourceURL: URL?) -> [URL]? { nil }
    func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator? { nil }
    func fileExists(at fileURL: URL?) -> Bool { false }
    func fileExists(atPath path: String) -> Bool { false }
    func fileSizeInBytes(fileURL: URL) -> Int64? { nil }
    func freeDiskSpaceInBytes() -> Int64 { 0 }
    func getFileSizeDescription(for fileURL: URL) -> String? { nil }
    func getFileSizeDescription(from fileSize: Int64) -> String { "" }
    func getTemporaryFileName() -> String { "" }
    func getTemporarySendableFileName(base: String) -> String { "" }
    func getTemporarySendableFileName(base: String, directoryURL: URL, pathExtension: String?) -> String { "" }
    func getUniqueFilename(from filename: String, directoryURL: URL, pathExtension: String?) -> String { "" }
    func isDeletableFile(atPath path: String) -> Bool { false }
    func logDirectoriesAndFiles(pathURL: URL) { /* no-op */ }
    func mergeContentsOfPath(from sourceURL: URL, to destinationURL: URL) throws { /* no-op */ }
    func mkDir(
        at url: URL,
        withIntermediateDirectories createIntermediates: Bool,
        attributes: [FileAttributeKey: Any]?
    ) throws { /* no-op */ }
    func mkDir(
        atPath path: String,
        withIntermediateDirectories createIntermediates: Bool,
        attributes: [FileAttributeKey: Any]?
    ) throws { /* no-op */ }
    func move(from sourceURL: URL, to destinationURL: URL) throws { /* no-op */ }
    func move(fromPath srcPath: String, toPath dstPath: String) throws { /* no-op */ }
    func pathSizeInBytes(pathURL: URL, size: inout Int64) { /* no-op */ }
    func read(fileURL: URL?) -> Data? { nil }
    func read(offset: UInt64?, length: UInt64?, from fileHandle: FileHandle, fileURL: URL) throws -> Data { Data() }
    func removeItemsInAllDirectories(appGroupID: String) { /* no-op */ }
    func removeItemsInDirectory(directoryURL: URL) { /* no-op */ }
    func replaceFile(from sourceURL: URL, to destinationURL: URL) throws { /* no-op */ }
    func updateProtectionFormCompleteToCompleteUntilFirstUserAuthentication(at directoryURL: URL) { /* no-op */ }
    func write(contents: Data?, to fileURL: URL?) -> Bool { false }
    func write(contents: Data, offset: UInt64?, to fileHandle: FileHandle, fileURL: URL) throws { /* no-op */ }
}

Messung
CHZG
100439984

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-23) ¤

*Bot Zugriff