EMILE/libiso9660/iso9660_is_directory.c

15 lines
272 B
C
Raw Normal View History

2005-11-12 19:12:13 +00:00
/*
*
* (c) 2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-12 19:12:13 +00:00
*
*/
#include "libiso9660.h"
int iso9660_is_directory(struct iso_directory_record * idr)
{
return ((idr->flags[0] & 2) != 0 &&
(idr->name_len[0] != 1 ||
(idr->name[0] != 0 && idr->name[0] != 1)));
}