Skip to main content

Thread: C++ lstat to determine file type


i want determine type of file. far, using lstat() / stat(), can following types:

  • regular file
  • directory
  • character device
  • block device
  • fifo (named pipe)
  • symbolic link
  • socket

still need know 3 more types, don't know how them, googled found no satisfying answer. need 3 following types

  • archive state 1
  • archive state 2
  • whiteout

please tell me how these. in advance.

quote posted zobayer1 view post
i want determine type of file. far, using lstat() / stat(), can following types:

  • regular file
  • directory
  • character device
  • block device
  • fifo (named pipe)
  • symbolic link
  • socket

still need know 3 more types, don't know how them, googled found no satisfying answer. need 3 following types

  • archive state 1
  • archive state 2
  • whiteout

please tell me how these. in advance.
the first list distinguished operating system, other ones? have never heard of them.

program 'file' may useful - looks files , tries determines data inside represents.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] C++ lstat to determine file type


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support