/* @fh: file handle Return: true if file handle points to a directory  */
static int is_dir(struct file_handle *fh)
/* @fh: file handle Return: true if file handle points to a directory  */
static int is_dir(struct file_handle *fh)
{
	struct fs_dir_stream *dirs;
	dirs = fs_opendir(fh->path);
	if (!dirs)
		return 0;
	fs_closedir(dirs);
	return 1;
}