EMILE/libiso9660/iso9660_is_directory.c
Laurent Vivier 9bd9755dbb Update email address
Signed-off-by: Laurent Vivier <Laurent@Vivier.EU>
2013-09-05 14:45:27 +02:00

15 lines
269 B
C

/*
*
* (c) 2005 Laurent Vivier <Laurent@Vivier.EU>
*
*/
#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)));
}