Skip to content

Commit 42d8a72

Browse files
committed
namespacing get file size function
1 parent 642c68b commit 42d8a72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ds3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static void get_file_size_posix(const char* file_path, uint64_t* file_size) {
295295
}
296296
}
297297

298-
uint64_t get_file_size(const char* file_path) {
298+
uint64_t ds3_get_file_size(const char* file_path) {
299299
uint64_t size = 0;
300300
#ifdef _WIN32
301301
get_file_size_windows(file_path, &size);

src/ds3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5078,7 +5078,7 @@ LIBRARY_API ds3_bulk_object_list_response* ds3_init_bulk_object_list_with_size(s
50785078
/**
50795079
* Retrieves the size of the specified file. If the file does not exist, 0 is returned.
50805080
*/
5081-
LIBRARY_API uint64_t get_file_size(const char* file_path);
5081+
LIBRARY_API uint64_t ds3_get_file_size(const char* file_path);
50825082

50835083
#ifdef __cplusplus
50845084
}

test/get_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void put_test_file(ds3_client* client, const char* file_name, const char* object
8888
FILE* file = fopen(file_name, "r");
8989

9090
// Get file size
91-
uint64_t size = get_file_size(file_name);
91+
uint64_t size = ds3_get_file_size(file_name);
9292

9393
// Perform naked put object
9494
request = ds3_init_put_object_request(bucket_name, object_name, size);

0 commit comments

Comments
 (0)