client/src/unifycr.c
int unifycr_fid_create_directory(const char * path)
{
   /* set everything we do for a file... */
   int fid = unifycr_fid_create_file(path);
   if (fid < 0) {
       /* was there an error? if so, return it */
       errno = ENOSPC;
       return fid;
   }

   /* ...and a little more */
   unifycr_filemeta_t* meta = unifycr_get_meta_from_fid(fid);
   meta->is_dir = 1;
   return fid;
}
/* add a new directory and initialize metadata
 * returns the new fid, or a negative value on error */
add a new directory and initialize metadata
returns the new fid, or a negative value on error
add a new directory and initialize metadata returns the new fid or a negative value on error
int unifycr_fid_create_directory(const char * path)
{
   int fid = unifycr_fid_create_file(path);
   if (fid < 0) {
       errno = ENOSPC;
       return fid;
   }
   unifycr_filemeta_t* meta = unifycr_get_meta_from_fid(fid);
   meta->is_dir = 1;
   return fid;
}
int unifycr_fid_create_directory ( const char * path ) { int fid = unifycr_fid_create_file ( path ) ; if ( fid < 0 ) { errno = ENOSPC ; return fid ; } unifycr_filemeta_t * meta = unifycr_get_meta_from_fid ( fid ) ; meta -> is_dir = 1 ; return fid ; }
add a new directory and initialize metadata
 returns the new fid, or a negative value on error
add a new directory and initialize metadata returns the new fid or a negative value on error
/* set everything we do for a file... */ /* was there an error? if so, return it */ /* ...and a little more */