コード例 #1
0
ファイル: cloudfuse.c プロジェクト: gokuale/hubicfuse
static int cfs_mkdir(const char *path, mode_t mode)
{
    if (cloudfs_create_directory(path))
    {
        update_dir_cache(path, 0, 1, 0);
        return 0;
    }
    return -ENOENT;
}
コード例 #2
0
ファイル: cloudfuse.c プロジェクト: fleischkatapult/hubicfuse
static int cfs_mkdir(const char* path, mode_t mode)
{
  debugf(DBG_LEVEL_NORM, KBLU "cfs_mkdir(%s)", path);
  int response = cloudfs_create_directory(path);
  if (response)
  {
    update_dir_cache(path, 0, 1, 0);
    debug_list_cache_content();
    debugf(DBG_LEVEL_NORM, KBLU "exit 0: cfs_mkdir(%s)", path);
    return 0;
  }
  debugf(DBG_LEVEL_NORM, KRED "exit 1: cfs_mkdir(%s) response=%d", path,
         response);
  return -ENOENT;
}