Skip to content

Commit 3ed2f28

Browse files
committed
Make internal class methods internal (#51)
1 parent c46be71 commit 3ed2f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/MuxUploadSDK/InternalUtilities/ChunkedFile.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ChunkedFile {
4343
/// Opens the internal file ahead of time. Calling this is optional, but it's available
4444
/// Calling this multiple times (on the same thread) will have no effect unless you also ``close`` it
4545
/// Throws if the file couldn't be opened
46-
public func openFile(fileURL: URL) throws {
46+
func openFile(fileURL: URL) throws {
4747
if fileHandle == nil {
4848
do {
4949
guard let fileSize = try FileManager.default.attributesOfItem(atPath: fileURL.path)[FileAttributeKey.size] as? UInt64 else {
@@ -62,7 +62,7 @@ class ChunkedFile {
6262

6363
/// Closes the the file opened by ``openFile``. Should be called on the same thread that opened the file
6464
/// Calling this multiple times has no effect
65-
public func close() {
65+
func close() {
6666
do {
6767
try fileHandle?.close()
6868
} catch {
@@ -73,7 +73,7 @@ class ChunkedFile {
7373
_fileSize = ChunkedFile.SIZE_UNKNOWN
7474
}
7575

76-
public func seekTo(byte: UInt64) throws {
76+
func seekTo(byte: UInt64) throws {
7777
// Worst case: we start from the begining and there's a few very quick chunk successes
7878
try fileHandle?.seek(toOffset: byte)
7979
filePos = byte

0 commit comments

Comments
 (0)