Beispiel #1
0
    public bool GetFileListFromPath(string path, bhClowdDriveAPI.fileList_Callback callback)
    {
        if (_type == eCloudType.NotSelected)
        {
            return(false);
        }

        bool res = false;

        switch (_type)
        {
        case eCloudType.bCloudDrive:
        {
            res = _bDriveAPI.GetFileListFromPath(path, callback);
        }
        break;

        case eCloudType.GoogleDrive:
        {
            res = true;
            string resPath = path;
            if (path == "/")
            {
                resPath = "";
            }

            _bGoogleAPI.GetSelectedFolderFileList(resPath, callback);
        }
        break;
        }
        return(res);
    }