コード例 #1
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var folderId   = (string)data.Data[FILE_OR_FOLDER_ID];
            var permission = (GoogleDrivePermission)data.Data[PERMISSION];

            return(GoogleDriveUtility.SetResourcePermissions(connection, folderId, permission));
        }
コード例 #2
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var parentFolderId = (string)data.Data[PARENT_FOLDER_ID];
            var newFolderName  = (string)data.Data[NEW_FOLDER_NAME];

            return(GoogleDriveUtility.CreateFolder(connection, newFolderName, parentFolderId));
        }
コード例 #3
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var fileId   = (string)data.Data[FILE_ID];
            var filePath = (string)data.Data[LOCAL_FILE_PATH];

            return(GoogleDriveUtility.DownloadFile(connection, fileId, filePath));
        }
コード例 #4
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var folderId      = (string)data.Data[PARENT_FOLDER_ID];
            var localFilePath = (string)data.Data[LOCAL_FILE_PATH];
            var fileName      = System.IO.Path.GetFileName(localFilePath);

            return(GoogleDriveUtility.UploadFile(connection, localFilePath, fileName, folderId));
        }
コード例 #5
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var fileOrFolderId = (string)data.Data[FILE_OR_FOLDER_ID];

            return(GoogleDriveUtility.DoesResourceExist(connection, fileOrFolderId));
        }
コード例 #6
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var FolderId = (string)data.Data[PARENT_FOLDER_ID];

            return(GoogleDriveUtility.GetFiles(connection, FolderId));
        }
コード例 #7
0
        protected override GoogleDriveBaseResult ExecuteStep(Connection connection, StepStartData data)
        {
            var FolderId = (string)data.Data[PARENT_FOLDER_ID];

            return(GoogleDriveUtility.GetFolders(connection, FolderId)); //StepsCore.GetFolderList(credentinal, FolderId);
        }