MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / IsDevice

Method IsDevice

Libraries/unrar/file.cpp:695–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693
694
695bool File::IsDevice()
696{
697 if (hFile==FILE_BAD_HANDLE)
698 return false;
699#ifdef _WIN_ALL
700 uint Type=GetFileType(hFile);
701 return Type==FILE_TYPE_CHAR || Type==FILE_TYPE_PIPE;
702#else
703 return isatty(GetFD());
704#endif
705}
706
707
708#ifndef SFX_MODULE

Callers 1

ExtractCurrentFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected