Skip to content

Commit 468bcee

Browse files
committed
comment out info method
1 parent 0414108 commit 468bcee

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

Sources/Storage/StorageFileApi.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,15 @@ public class StorageFileApi: StorageApi, @unchecked Sendable {
422422
}
423423

424424
/// Retrieves the details of an existing file.
425-
public func info(path: String) async throws -> FileObjectV2 {
426-
try await execute(
427-
HTTPRequest(
428-
url: configuration.url.appendingPathComponent("object/info/public/\(bucketId)/\(path)"),
429-
method: .get
430-
)
431-
)
432-
.decoded(decoder: configuration.decoder)
433-
}
425+
// public func info(path: String) async throws -> FileObjectV2 {
426+
// try await execute(
427+
// HTTPRequest(
428+
// url: configuration.url.appendingPathComponent("object/info/public/\(bucketId)/\(path)"),
429+
// method: .get
430+
// )
431+
// )
432+
// .decoded(decoder: configuration.decoder)
433+
// }
434434

435435
/// Checks the existence of file.
436436
public func exists(path: String) async throws -> Bool {

Tests/IntegrationTests/StorageFileIntegrationTests.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -329,19 +329,19 @@ final class StorageFileIntegrationTests: XCTestCase {
329329
}
330330
}
331331

332-
func testInfo() async throws {
333-
try await storage.from(bucketName).upload(
334-
uploadPath,
335-
data: file,
336-
options: FileOptions(
337-
metadata: ["value": 42]
338-
)
339-
)
340-
341-
let info = try await storage.from(bucketName).info(path: uploadPath)
342-
XCTAssertEqual(info.name, uploadPath)
343-
XCTAssertEqual(info.metadata, ["value": 42])
344-
}
332+
// func testInfo() async throws {
333+
// try await storage.from(bucketName).upload(
334+
// uploadPath,
335+
// data: file,
336+
// options: FileOptions(
337+
// metadata: ["value": 42]
338+
// )
339+
// )
340+
//
341+
// let info = try await storage.from(bucketName).info(path: uploadPath)
342+
// XCTAssertEqual(info.name, uploadPath)
343+
// XCTAssertEqual(info.metadata, ["value": 42])
344+
// }
345345

346346
func testExists() async throws {
347347
try await storage.from(bucketName).upload(uploadPath, data: file)

0 commit comments

Comments
 (0)