mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
16 lines
No EOL
322 B
C++
16 lines
No EOL
322 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <fstream>
|
|
|
|
namespace satdump
|
|
{
|
|
inline bool file_is_zip(std::string path)
|
|
{
|
|
char sign[2];
|
|
std::ifstream(path, std::ios::binary).read(sign, 2);
|
|
return sign[0] == 'P' && sign[1] == 'K';
|
|
}
|
|
|
|
std::string try_get_eumetsat_id(std::string zippath);
|
|
} |