diff --git a/Sources/Storage/StorageFileApi.swift b/Sources/Storage/StorageFileApi.swift index 86f86e8d..1fe5e2ef 100644 --- a/Sources/Storage/StorageFileApi.swift +++ b/Sources/Storage/StorageFileApi.swift @@ -422,15 +422,15 @@ public class StorageFileApi: StorageApi, @unchecked Sendable { } /// Retrieves the details of an existing file. - public func info(path: String) async throws -> FileObjectV2 { - try await execute( - HTTPRequest( - url: configuration.url.appendingPathComponent("object/info/public/\(bucketId)/\(path)"), - method: .get - ) - ) - .decoded(decoder: configuration.decoder) - } +// public func info(path: String) async throws -> FileObjectV2 { +// try await execute( +// HTTPRequest( +// url: configuration.url.appendingPathComponent("object/info/public/\(bucketId)/\(path)"), +// method: .get +// ) +// ) +// .decoded(decoder: configuration.decoder) +// } /// Checks the existence of file. public func exists(path: String) async throws -> Bool { diff --git a/Tests/IntegrationTests/StorageFileIntegrationTests.swift b/Tests/IntegrationTests/StorageFileIntegrationTests.swift index f2ae953e..5816696b 100644 --- a/Tests/IntegrationTests/StorageFileIntegrationTests.swift +++ b/Tests/IntegrationTests/StorageFileIntegrationTests.swift @@ -329,19 +329,19 @@ final class StorageFileIntegrationTests: XCTestCase { } } - func testInfo() async throws { - try await storage.from(bucketName).upload( - uploadPath, - data: file, - options: FileOptions( - metadata: ["value": 42] - ) - ) - - let info = try await storage.from(bucketName).info(path: uploadPath) - XCTAssertEqual(info.name, uploadPath) - XCTAssertEqual(info.metadata, ["value": 42]) - } +// func testInfo() async throws { +// try await storage.from(bucketName).upload( +// uploadPath, +// data: file, +// options: FileOptions( +// metadata: ["value": 42] +// ) +// ) +// +// let info = try await storage.from(bucketName).info(path: uploadPath) +// XCTAssertEqual(info.name, uploadPath) +// XCTAssertEqual(info.metadata, ["value": 42]) +// } func testExists() async throws { try await storage.from(bucketName).upload(uploadPath, data: file)