[Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink
https://bugs.webkit.org/show_bug.cgi?id=198473
Summary [Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink
Fujii Hironori
Reported 2019-06-02 20:22:46 PDT
[Win] Implement NetworkCacheBlobStorage.cpp without stat and unlink unlink is deprecated https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink?view=vs-2019 _unlink https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/unlink-wunlink?view=vs-2019 _stat、_stat32、_stat64、_stati64、_stat32i64、_stat64i32、_wstat、_wstat32、_wstat64、_wstati64、_wstat32i64、_wstat64i32 | Microsoft Docs https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/stat-functions?view=vs-2019
Attachments
Konstantin Tokarev
Comment 1 2019-06-02 20:34:19 PDT
Proper direction would be to convert as much as possible of NetworkCache code to be cross-platform by using our FileSystem abstractions, e.g. FileSystem::deleteFile instead of unlink In future we may want to use std::filesystem to implement some of operations
Konstantin Tokarev
Comment 2 2019-06-02 20:40:36 PDT
And where are substantial differences which require code to be #ifdef'ed, it would be better to avoid increasing of #ifdef's and instead separate parts of code to respective *POSIX.cpp and *Win.cpp files
Note You need to log in before you can comment on or make changes to this bug.