files.com 1.1.827 → 1.1.829
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -0
- data/_VERSION +1 -1
- data/doc/Files/APIConnectionError.html +1 -1
- data/doc/Files/APIError.html +1 -1
- data/doc/Files/AccountAlreadyExistsError.html +1 -1
- data/doc/Files/AccountLineItem.html +1 -1
- data/doc/Files/AccountOverdueError.html +1 -1
- data/doc/Files/Action.html +1 -1
- data/doc/Files/ActionLog.html +1 -1
- data/doc/Files/ActionNotificationExport.html +1 -1
- data/doc/Files/ActionNotificationExportResult.html +1 -1
- data/doc/Files/AdditionalAuthenticationRequiredError.html +1 -1
- data/doc/Files/AgentNode.html +1 -1
- data/doc/Files/AgentNodeConnection.html +1 -1
- data/doc/Files/AgentNodeInstance.html +1 -1
- data/doc/Files/AgentPushUpdate.html +1 -1
- data/doc/Files/AgentPushUpdateBlockedError.html +1 -1
- data/doc/Files/AgentUnavailableError.html +1 -1
- data/doc/Files/AgentUpgradeRequiredError.html +1 -1
- data/doc/Files/AiAssistantPersonality.html +1 -1
- data/doc/Files/AiTask.html +1 -1
- data/doc/Files/AiTaskCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AlreadyCompletedError.html +1 -1
- data/doc/Files/Api.html +7 -5
- data/doc/Files/ApiClient/RequestLogContext.html +29 -29
- data/doc/Files/ApiClient/TransferSettings.html +29 -29
- data/doc/Files/ApiClient.html +210 -148
- data/doc/Files/ApiKey.html +1 -1
- data/doc/Files/ApiKeyIsDisabledError.html +1 -1
- data/doc/Files/ApiKeyIsPathRestrictedError.html +1 -1
- data/doc/Files/ApiKeyNotFoundError.html +1 -1
- data/doc/Files/ApiKeyOnlyForDesktopAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForFileOperationsError.html +1 -1
- data/doc/Files/ApiKeyOnlyForMobileAppError.html +1 -1
- data/doc/Files/ApiKeyOnlyForOfficeIntegrationError.html +1 -1
- data/doc/Files/ApiKeySessionsNotSupportedError.html +1 -1
- data/doc/Files/ApiRequestLog.html +1 -1
- data/doc/Files/App.html +1 -1
- data/doc/Files/As2IncomingMessage.html +1 -1
- data/doc/Files/As2OutgoingMessage.html +1 -1
- data/doc/Files/As2Partner.html +1 -1
- data/doc/Files/As2Station.html +1 -1
- data/doc/Files/AttachmentTooLargeError.html +1 -1
- data/doc/Files/AuthenticationError.html +1 -1
- data/doc/Files/AuthenticationRequiredError.html +1 -1
- data/doc/Files/Auto.html +1 -1
- data/doc/Files/Automation.html +1 -1
- data/doc/Files/AutomationAuthoringSchema.html +1 -1
- data/doc/Files/AutomationCannotBeRunManuallyError.html +1 -1
- data/doc/Files/AutomationExecutionNode.html +1 -1
- data/doc/Files/AutomationLog.html +1 -1
- data/doc/Files/AutomationRun.html +1 -1
- data/doc/Files/AutomationsUnavailableError.html +1 -1
- data/doc/Files/BadRequestError.html +1 -1
- data/doc/Files/BandwidthSnapshot.html +1 -1
- data/doc/Files/Behavior.html +1 -1
- data/doc/Files/BehaviorNotAllowedOnRemoteServerError.html +1 -1
- data/doc/Files/BillingInformationHiddenError.html +1 -1
- data/doc/Files/BillingPermissionRequiredError.html +1 -1
- data/doc/Files/BufferedUploadDisabledForThisDestinationError.html +1 -1
- data/doc/Files/Bundle.html +1 -1
- data/doc/Files/BundleAction.html +1 -1
- data/doc/Files/BundleDownload.html +1 -1
- data/doc/Files/BundleMaximumUsesReachedError.html +1 -1
- data/doc/Files/BundleNotification.html +1 -1
- data/doc/Files/BundleOnlyAllowsPreviewsError.html +1 -1
- data/doc/Files/BundleOperationRequiresSubfolderError.html +1 -1
- data/doc/Files/BundlePath.html +1 -1
- data/doc/Files/BundlePathNotFoundError.html +1 -1
- data/doc/Files/BundlePermissionRequiredError.html +1 -1
- data/doc/Files/BundleRecipient.html +1 -1
- data/doc/Files/BundleRegistration.html +1 -1
- data/doc/Files/BundleRegistrationCodeFailedError.html +1 -1
- data/doc/Files/BundleRegistrationNotFoundError.html +1 -1
- data/doc/Files/CannotAdministerHigherLevelUserError.html +1 -1
- data/doc/Files/CannotDownloadDirectoryError.html +1 -1
- data/doc/Files/CannotLoginWhileUsingKeyError.html +1 -1
- data/doc/Files/CantActForOtherUserError.html +1 -1
- data/doc/Files/CantMoveWithMultipleLocationsError.html +1 -1
- data/doc/Files/ChatMessage.html +1 -1
- data/doc/Files/ChatSession.html +1 -1
- data/doc/Files/ChildSiteManagementPolicy.html +1 -1
- data/doc/Files/Clickwrap.html +1 -1
- data/doc/Files/CodeNotFoundError.html +1 -1
- data/doc/Files/ConfigurationLockedPathError.html +1 -1
- data/doc/Files/ContactAdminForPasswordChangeHelpError.html +1 -1
- data/doc/Files/CouldNotCreateParentError.html +1 -1
- data/doc/Files/CustomDomain.html +1 -1
- data/doc/Files/DatetimeParseError.html +1 -1
- data/doc/Files/DesktopConfigurationProfile.html +1 -1
- data/doc/Files/DestinationExistsError.html +1 -1
- data/doc/Files/DestinationFolderLimitedError.html +1 -1
- data/doc/Files/DestinationParentConflictError.html +1 -1
- data/doc/Files/DestinationParentDoesNotExistError.html +1 -1
- data/doc/Files/DestinationSameError.html +1 -1
- data/doc/Files/DestinationSiteMismatchError.html +1 -1
- data/doc/Files/DirectConnectionInfo.html +1 -1
- data/doc/Files/DnsRecord.html +1 -1
- data/doc/Files/DoesNotSupportSortingError.html +1 -1
- data/doc/Files/DuplicateShareRecipientError.html +1 -1
- data/doc/Files/EmailIncomingMessage.html +1 -1
- data/doc/Files/EmailLog.html +1 -1
- data/doc/Files/Error.html +1 -1
- data/doc/Files/Errors.html +1 -1
- data/doc/Files/EventChannel.html +1 -1
- data/doc/Files/EventDeliveryAttempt.html +1 -1
- data/doc/Files/EventRecord.html +1 -1
- data/doc/Files/EventSubscription.html +1 -1
- data/doc/Files/EventTarget.html +1 -1
- data/doc/Files/ExavaultApiRequestLog.html +1 -1
- data/doc/Files/ExceededRuntimeLimitError.html +1 -1
- data/doc/Files/Expectation.html +1 -1
- data/doc/Files/ExpectationAlreadyHasOpenWindowError.html +1 -1
- data/doc/Files/ExpectationEvaluation.html +1 -1
- data/doc/Files/ExpectationIncident.html +1 -1
- data/doc/Files/ExpectationNotManualTriggerError.html +1 -1
- data/doc/Files/ExpiredPrivateKeyError.html +1 -1
- data/doc/Files/ExpiredPublicKeyError.html +1 -1
- data/doc/Files/ExportFailureError.html +1 -1
- data/doc/Files/ExportNotReadyError.html +1 -1
- data/doc/Files/ExternalEvent.html +1 -1
- data/doc/Files/FailedToChangePasswordError.html +1 -1
- data/doc/Files/File.html +1081 -1073
- data/doc/Files/FileAction.html +1 -1
- data/doc/Files/FileActionError.html +1 -1
- data/doc/Files/FileComment.html +1 -1
- data/doc/Files/FileCommentReaction.html +1 -1
- data/doc/Files/FileLockedError.html +1 -1
- data/doc/Files/FileMigration.html +1 -1
- data/doc/Files/FileMigrationLog.html +1 -1
- data/doc/Files/FileNotFoundError.html +1 -1
- data/doc/Files/FileNotUploadedError.html +1 -1
- data/doc/Files/FilePendingProcessingError.html +1 -1
- data/doc/Files/FileProcessingErrorError.html +1 -1
- data/doc/Files/FileTooBigToDecryptError.html +1 -1
- data/doc/Files/FileTooBigToEncryptError.html +1 -1
- data/doc/Files/FileUploadNotFoundError.html +1 -1
- data/doc/Files/FileUploadPart.html +1 -1
- data/doc/Files/FileUploadedToWrongRegionError.html +1 -1
- data/doc/Files/FileUtils.html +1 -1
- data/doc/Files/FilenameTooLongError.html +1 -1
- data/doc/Files/FilesAgentFailedAuthorizationError.html +1 -1
- data/doc/Files/FilesNativeStorageOverloadedError.html +1 -1
- data/doc/Files/Folder.html +1 -1
- data/doc/Files/FolderAdminOrBillingPermissionRequiredError.html +1 -1
- data/doc/Files/FolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/FolderLockedError.html +1 -1
- data/doc/Files/FolderMustNotBeAFileError.html +1 -1
- data/doc/Files/FolderNotEmptyError.html +1 -1
- data/doc/Files/FoldersNotAllowedError.html +1 -1
- data/doc/Files/FormField.html +1 -1
- data/doc/Files/FormFieldSet.html +1 -1
- data/doc/Files/FtpActionLog.html +1 -1
- data/doc/Files/FullPermissionRequiredError.html +1 -1
- data/doc/Files/GpgKey.html +1 -1
- data/doc/Files/Group.html +1 -1
- data/doc/Files/GroupNotFoundError.html +1 -1
- data/doc/Files/GroupUser.html +1 -1
- data/doc/Files/History.html +1 -1
- data/doc/Files/HistoryExport.html +1 -1
- data/doc/Files/HistoryExportResult.html +1 -1
- data/doc/Files/HistoryPermissionRequiredError.html +1 -1
- data/doc/Files/HistoryUnavailableError.html +1 -1
- data/doc/Files/HolidayCalendar.html +1 -1
- data/doc/Files/HolidayRegion.html +1 -1
- data/doc/Files/Image.html +1 -1
- data/doc/Files/InAppAiAssistantUnavailableError.html +1 -1
- data/doc/Files/InboundS3Log.html +1 -1
- data/doc/Files/InboxNotFoundError.html +1 -1
- data/doc/Files/InboxRecipient.html +1 -1
- data/doc/Files/InboxRegistration.html +1 -1
- data/doc/Files/InboxRegistrationCodeFailedError.html +1 -1
- data/doc/Files/InboxUpload.html +1 -1
- data/doc/Files/InsufficientPermissionForParamsError.html +1 -1
- data/doc/Files/InsufficientPermissionForSiteError.html +1 -1
- data/doc/Files/IntegrationCentricProfile.html +1 -1
- data/doc/Files/InternalGeneralErrorError.html +1 -1
- data/doc/Files/InvalidBodyError.html +1 -1
- data/doc/Files/InvalidBundleCodeError.html +1 -1
- data/doc/Files/InvalidCredentialsError.html +1 -1
- data/doc/Files/InvalidCursorError.html +1 -1
- data/doc/Files/InvalidCursorTypeForSortError.html +1 -1
- data/doc/Files/InvalidEtagsError.html +1 -1
- data/doc/Files/InvalidFileTypeError.html +1 -1
- data/doc/Files/InvalidFilenameError.html +1 -1
- data/doc/Files/InvalidFilterAliasCombinationError.html +1 -1
- data/doc/Files/InvalidFilterFieldError.html +1 -1
- data/doc/Files/InvalidFilterParamError.html +1 -1
- data/doc/Files/InvalidFilterParamFormatError.html +1 -1
- data/doc/Files/InvalidFilterParamValueError.html +1 -1
- data/doc/Files/InvalidInputEncodingError.html +1 -1
- data/doc/Files/InvalidInterfaceError.html +1 -1
- data/doc/Files/InvalidOauthError.html +1 -1
- data/doc/Files/InvalidOauthProviderError.html +1 -1
- data/doc/Files/InvalidOrExpiredCodeError.html +1 -1
- data/doc/Files/InvalidParameterError.html +1 -1
- data/doc/Files/InvalidPathError.html +1 -1
- data/doc/Files/InvalidPriorityColorError.html +1 -1
- data/doc/Files/InvalidRangeError.html +1 -1
- data/doc/Files/InvalidReturnToUrlError.html +1 -1
- data/doc/Files/InvalidSearchQueryError.html +1 -1
- data/doc/Files/InvalidSessionError.html +1 -1
- data/doc/Files/InvalidSiteError.html +1 -1
- data/doc/Files/InvalidSortFieldError.html +1 -1
- data/doc/Files/InvalidSortFilterCombinationError.html +1 -1
- data/doc/Files/InvalidUploadOffsetError.html +1 -1
- data/doc/Files/InvalidUploadPartGapError.html +1 -1
- data/doc/Files/InvalidUploadPartSizeError.html +1 -1
- data/doc/Files/InvalidUsernameOrPasswordError.html +1 -1
- data/doc/Files/InvalidWorkspaceIdHeaderError.html +1 -1
- data/doc/Files/InvalidZipFileError.html +1 -1
- data/doc/Files/Invoice.html +1 -1
- data/doc/Files/InvoiceLineItem.html +1 -1
- data/doc/Files/IpAddress.html +1 -1
- data/doc/Files/KeyLifecycleRule.html +1 -1
- data/doc/Files/List.html +1 -1
- data/doc/Files/Lock.html +1 -1
- data/doc/Files/LockOperationBusyError.html +1 -1
- data/doc/Files/LockedOutError.html +1 -1
- data/doc/Files/LockoutRegionMismatchError.html +1 -1
- data/doc/Files/MetadataCategory.html +1 -1
- data/doc/Files/MetadataNotSupportedOnRemotesError.html +1 -1
- data/doc/Files/MethodNotAllowedError.html +1 -1
- data/doc/Files/MigrationInProgressError.html +1 -1
- data/doc/Files/MissingParameterError.html +1 -1
- data/doc/Files/ModelSaveErrorError.html +1 -1
- data/doc/Files/MoverAccessDeniedError.html +1 -1
- data/doc/Files/MoverPackageRequiredError.html +1 -1
- data/doc/Files/MultipleProcessingErrorsError.html +1 -1
- data/doc/Files/MultipleSortParamsNotAllowedError.html +1 -1
- data/doc/Files/MustAuthenticateWithApiKeyError.html +1 -1
- data/doc/Files/NeedAdminPermissionForInboxError.html +1 -1
- data/doc/Files/NestedNotFoundError.html +1 -1
- data/doc/Files/NoAccountForSiteError.html +1 -1
- data/doc/Files/NoValidInputParamsError.html +1 -1
- data/doc/Files/NonAdminsMustQueryByFolderOrPathError.html +1 -1
- data/doc/Files/NotAllowedToCreateBundleError.html +1 -1
- data/doc/Files/NotAuthenticatedError.html +1 -1
- data/doc/Files/NotAuthorizedError.html +1 -1
- data/doc/Files/NotEnqueuableSyncError.html +1 -1
- data/doc/Files/NotFoundError.html +1 -1
- data/doc/Files/NotImplementedError.html +1 -1
- data/doc/Files/Notification.html +1 -1
- data/doc/Files/OffsetUploadNotAllowedWithMalwareScanningError.html +1 -1
- data/doc/Files/OneTimePasswordIncorrectError.html +1 -1
- data/doc/Files/OutboundConnectionLog.html +1 -1
- data/doc/Files/PartNumberTooLargeError.html +1 -1
- data/doc/Files/Partner.html +1 -1
- data/doc/Files/PartnerChannel.html +1 -1
- data/doc/Files/PartnerChannelTemplate.html +1 -1
- data/doc/Files/PartnerConnection.html +1 -1
- data/doc/Files/PartnerSite.html +1 -1
- data/doc/Files/PartnerSiteRequest.html +1 -1
- data/doc/Files/PasswordChangeNotRequiredError.html +1 -1
- data/doc/Files/PasswordChangeRequiredError.html +1 -1
- data/doc/Files/PathCannotHaveTrailingWhitespaceError.html +1 -1
- data/doc/Files/PathTooLongError.html +1 -1
- data/doc/Files/PathUtil.html +1 -1
- data/doc/Files/Payment.html +1 -1
- data/doc/Files/PaymentLineItem.html +1 -1
- data/doc/Files/PaymentMethodErrorError.html +1 -1
- data/doc/Files/PendingWorkEvent.html +1 -1
- data/doc/Files/Permission.html +1 -1
- data/doc/Files/PlanNotFoundError.html +1 -1
- data/doc/Files/Preview.html +1 -1
- data/doc/Files/PreviewOnlyPermissionCannotDownloadError.html +1 -1
- data/doc/Files/ProcessingFailureError.html +1 -1
- data/doc/Files/PublicHostingRequestLog.html +1 -1
- data/doc/Files/PublicIpAddress.html +1 -1
- data/doc/Files/PublicKey.html +1 -1
- data/doc/Files/RateLimitedError.html +1 -1
- data/doc/Files/ReadOnlySessionError.html +1 -1
- data/doc/Files/ReadPermissionRequiredError.html +1 -1
- data/doc/Files/ReauthenticationFailedError.html +1 -1
- data/doc/Files/ReauthenticationFailedFinalError.html +1 -1
- data/doc/Files/ReauthenticationNeededActionError.html +1 -1
- data/doc/Files/ReauthenticationNeededFieldsError.html +1 -1
- data/doc/Files/ReauthenticationRateLimitedError.html +1 -1
- data/doc/Files/RecaptchaFailedError.html +1 -1
- data/doc/Files/RecipientAlreadySharedError.html +1 -1
- data/doc/Files/RemoteBandwidthSnapshot.html +1 -1
- data/doc/Files/RemoteDesktopDebugLoggingDisabledError.html +1 -1
- data/doc/Files/RemoteEntryReadOnlyError.html +1 -1
- data/doc/Files/RemoteMountBackend.html +1 -1
- data/doc/Files/RemoteServer.html +1 -1
- data/doc/Files/RemoteServerConfigurationFile.html +1 -1
- data/doc/Files/RemoteServerCredential.html +1 -1
- data/doc/Files/RemoteServerErrorError.html +1 -1
- data/doc/Files/Request.html +1 -1
- data/doc/Files/RequestBodyTooLargeError.html +1 -1
- data/doc/Files/RequestParamsContainInvalidCharacterError.html +1 -1
- data/doc/Files/RequestParamsInvalidError.html +1 -1
- data/doc/Files/RequestParamsRequiredError.html +1 -1
- data/doc/Files/ResourceBelongsToParentSiteError.html +1 -1
- data/doc/Files/ResourceLockedError.html +1 -1
- data/doc/Files/Response.html +1 -1
- data/doc/Files/Restore.html +1 -1
- data/doc/Files/RootFolderBehaviorSiteAdminRequiredError.html +1 -1
- data/doc/Files/RootFolderBehaviorSkipSiteAdminRequiredError.html +1 -1
- data/doc/Files/Schedule.html +1 -1
- data/doc/Files/ScheduledExport.html +1 -1
- data/doc/Files/ScimLog.html +1 -1
- data/doc/Files/SearchAllOnChildPathError.html +1 -1
- data/doc/Files/SearchUnavailableError.html +1 -1
- data/doc/Files/Secret.html +1 -1
- data/doc/Files/SelfManagedRequiredError.html +1 -1
- data/doc/Files/ServiceUnavailableError.html +1 -1
- data/doc/Files/Session.html +1 -1
- data/doc/Files/SettingsChange.html +1 -1
- data/doc/Files/SftpActionLog.html +1 -1
- data/doc/Files/SftpHostKey.html +1 -1
- data/doc/Files/ShareGroup.html +1 -1
- data/doc/Files/ShareGroupMember.html +1 -1
- data/doc/Files/SiemHttpDestination.html +1 -1
- data/doc/Files/SiemHttpDestinationEvent.html +1 -1
- data/doc/Files/Site.html +1 -1
- data/doc/Files/SiteAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminOrFolderAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminOrPartnerAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminOrWorkspaceAdminPermissionRequiredError.html +1 -1
- data/doc/Files/SiteAdminRequiredError.html +1 -1
- data/doc/Files/SiteConfigurationError.html +1 -1
- data/doc/Files/SiteDisabledError.html +1 -1
- data/doc/Files/SiteFilesAreImmutableError.html +1 -1
- data/doc/Files/SiteNotFoundError.html +1 -1
- data/doc/Files/SiteSubdomainRedirect.html +1 -1
- data/doc/Files/SiteWasRemovedError.html +1 -1
- data/doc/Files/SizableIO.html +1 -1
- data/doc/Files/Snapshot.html +1 -1
- data/doc/Files/SsoEvent.html +1 -1
- data/doc/Files/SsoStrategy.html +1 -1
- data/doc/Files/Status.html +1 -1
- data/doc/Files/Style.html +1 -1
- data/doc/Files/SubfolderLockedError.html +1 -1
- data/doc/Files/Sync.html +1 -1
- data/doc/Files/SyncInProgressError.html +1 -1
- data/doc/Files/SyncLog.html +1 -1
- data/doc/Files/SyncRun.html +1 -1
- data/doc/Files/SyncRunLiveTransfer.html +1 -1
- data/doc/Files/SystemProfiler.html +1 -1
- data/doc/Files/TooManyConcurrentLoginsError.html +1 -1
- data/doc/Files/TooManyConcurrentRequestsError.html +1 -1
- data/doc/Files/TooManyLoginAttemptsError.html +1 -1
- data/doc/Files/TooManyRequestsError.html +1 -1
- data/doc/Files/TooManySharesError.html +1 -1
- data/doc/Files/Transfer/Attempts.html +88 -18
- data/doc/Files/Transfer/BufferLimitError.html +1 -1
- data/doc/Files/Transfer/ByteBudget/Reservation.html +1 -1
- data/doc/Files/Transfer/ByteBudget.html +1 -1
- data/doc/Files/Transfer/CancelledError.html +1 -1
- data/doc/Files/Transfer/Checkpoint.html +1 -1
- data/doc/Files/Transfer/CheckpointError.html +1 -1
- data/doc/Files/Transfer/ClientTransport/ClientResponse.html +36 -36
- data/doc/Files/Transfer/ClientTransport/Reader.html +33 -29
- data/doc/Files/Transfer/ClientTransport.html +34 -34
- data/doc/Files/Transfer/Clock.html +1 -1
- data/doc/Files/Transfer/Control.html +1 -1
- data/doc/Files/Transfer/Controller/Attempt.html +1 -1
- data/doc/Files/Transfer/Controller.html +1 -1
- data/doc/Files/Transfer/Coordinator/Timing.html +1 -1
- data/doc/Files/Transfer/Coordinator.html +1 -1
- data/doc/Files/Transfer/DownloadCoordinator/FileSink.html +134 -60
- data/doc/Files/Transfer/DownloadCoordinator/IoSink.html +152 -77
- data/doc/Files/Transfer/DownloadCoordinator/Piece.html +37 -37
- data/doc/Files/Transfer/DownloadCoordinator.html +85 -70
- data/doc/Files/Transfer/DownloadDate.html +467 -0
- data/doc/Files/Transfer/FileSlots.html +1 -1
- data/doc/Files/Transfer/FrontendResponseError.html +1 -1
- data/doc/Files/Transfer/Holds.html +1 -1
- data/doc/Files/Transfer/HttpTransport.html +13 -12
- data/doc/Files/Transfer/Job.html +1 -1
- data/doc/Files/Transfer/Options.html +1 -1
- data/doc/Files/Transfer/PausedError.html +1 -1
- data/doc/Files/Transfer/Policy.html +1 -1
- data/doc/Files/Transfer/RequestPermits.html +1 -1
- data/doc/Files/Transfer/SourceChangedError.html +1 -1
- data/doc/Files/Transfer/StorageResponse.html +1 -1
- data/doc/Files/Transfer/StorageRetry.html +259 -102
- data/doc/Files/Transfer/UploadCoordinator/Grant.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Part.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Region.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Segments.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/Source.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator/StreamSource.html +1 -1
- data/doc/Files/Transfer/UploadCoordinator.html +1 -1
- data/doc/Files/Transfer/UploadPlan.html +1 -1
- data/doc/Files/Transfer/UrlExpired.html +1 -1
- data/doc/Files/Transfer/VersionChangedError.html +1 -1
- data/doc/Files/Transfer.html +3 -3
- data/doc/Files/TrialExpiredError.html +1 -1
- data/doc/Files/TrialLockedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCodeAlreadySentError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationCountryBlacklistedError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationGeneralErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationMethodUnsupportedErrorError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationRequiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationSetupExpiredError.html +1 -1
- data/doc/Files/TwoFactorAuthenticationUnsubscribedRecipientError.html +1 -1
- data/doc/Files/URI.html +1 -1
- data/doc/Files/UnrecognizedSortIndexError.html +1 -1
- data/doc/Files/UnsupportedCurrencyError.html +1 -1
- data/doc/Files/UnsupportedHttpResponseFormatError.html +1 -1
- data/doc/Files/UnsupportedMediaTypeError.html +1 -1
- data/doc/Files/UpdatesNotAllowedForRemotesError.html +1 -1
- data/doc/Files/UploadFinalization.html +1 -1
- data/doc/Files/UploadsUnavailableError.html +1 -1
- data/doc/Files/UsageByTopLevelDir.html +1 -1
- data/doc/Files/UsageDailySnapshot.html +1 -1
- data/doc/Files/UsageSnapshot.html +1 -1
- data/doc/Files/User.html +1 -1
- data/doc/Files/UserAdditionalEmailRecipient.html +1 -1
- data/doc/Files/UserCipherUse.html +1 -1
- data/doc/Files/UserIdInvalidError.html +1 -1
- data/doc/Files/UserIdOnUserEndpointError.html +1 -1
- data/doc/Files/UserIdWithoutSiteAdminError.html +1 -1
- data/doc/Files/UserLifecycleRule.html +1 -1
- data/doc/Files/UserNotFoundError.html +1 -1
- data/doc/Files/UserRequest.html +1 -1
- data/doc/Files/UserRequestsEnabledRequiredError.html +1 -1
- data/doc/Files/UserRequiredError.html +1 -1
- data/doc/Files/UserSecurityEvent.html +1 -1
- data/doc/Files/UserSftpClientUse.html +1 -1
- data/doc/Files/Util/LogSettings.html +1 -1
- data/doc/Files/Util.html +1 -1
- data/doc/Files/WebDavActionLog.html +1 -1
- data/doc/Files/WebhookTest.html +1 -1
- data/doc/Files/Workspace.html +1 -1
- data/doc/Files/WriteAndBundlePermissionRequiredError.html +1 -1
- data/doc/Files/WritePermissionRequiredError.html +1 -1
- data/doc/Files/ZipListEntry.html +1 -1
- data/doc/Files.html +167 -101
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -2
- data/doc/index.html +11 -2
- data/doc/method_list.html +2815 -2727
- data/doc/top-level-namespace.html +1 -1
- data/docs/file.md +21 -5
- data/lib/files.com/api.rb +1 -0
- data/lib/files.com/api_client.rb +23 -2
- data/lib/files.com/models/file.rb +11 -7
- data/lib/files.com/transfer/attempts.rb +3 -2
- data/lib/files.com/transfer/download_coordinator.rb +104 -16
- data/lib/files.com/transfer/download_date.rb +44 -0
- data/lib/files.com/transfer/http_transport.rb +14 -9
- data/lib/files.com/transfer/storage_retry.rb +22 -4
- data/lib/files.com.rb +3 -0
- data/spec/models/native_file_spec.rb +4 -2
- data/spec/transfer/adaptive_download_spec.rb +335 -4
- metadata +3 -1
|
@@ -116,8 +116,14 @@ ClientTransport); a client whose adapter cannot stream is refused before anythin
|
|
|
116
116
|
caller's thread it first asks for the opening range (8 MiB, or a quarter of buffer_bytes when that is less) with
|
|
117
117
|
Accept-Encoding: identity. A 206 with a strong ETag and an exact Content-Range and Content-Length binds the
|
|
118
118
|
download to that version: every later range is requested with If-Match and must come back as a 206 with the
|
|
119
|
-
exact Content-Range, total, length and ETag, and a 412, or a whole response with any other ETag,
|
|
120
|
-
VersionChangedError before anything of it is written
|
|
119
|
+
exact Content-Range, total, length and ETag, and a 412, or a whole response with any other ETag, ends the attempt
|
|
120
|
+
with VersionChangedError before anything of it is written, as do a newer Last-Modified (DownloadDate) and storage's
|
|
121
|
+
409 download_source_changed (StorageRetry.source_changed_response?). Once the requests that attempt has in flight
|
|
122
|
+
have settled, a range still arriving stopping at its next chunk (stop_obsolete_read), a local file (download_file) starts over from its first byte, with a URL the API gives anew and the
|
|
123
|
+
size, version and date storage answers it with, dropping every byte and claim of the attempt before; an IO does
|
|
124
|
+
only while nothing has been written to it. Each restart is one of Files.max_network_retries, counted however far
|
|
125
|
+
the attempt got, so a file that keeps changing fails; none is made once they are spent, or after a cancellation or
|
|
126
|
+
pause came first. Ranges complete in any order, each read straight into one
|
|
121
127
|
String of its length, wait in memory within buffer_bytes, and are written to the destination in order on the
|
|
122
128
|
caller's thread, which progress, when given, is then called on. A range is on the network, for its controller,
|
|
123
129
|
until its whole body has arrived and been checked. Every request, the opening one and a proof included, waits
|
|
@@ -176,6 +182,11 @@ IO, as without transfer:; other failures leave it open, holding what was written
|
|
|
176
182
|
</dt>
|
|
177
183
|
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The download URL the API returned has expired, and renewing it did not give one still valid</span><span class='tstring_end'>"</span></span></pre></dd>
|
|
178
184
|
|
|
185
|
+
<dt id="SOURCE_CHANGED-constant" class="">SOURCE_CHANGED =
|
|
186
|
+
|
|
187
|
+
</dt>
|
|
188
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>The remote file changed during the download: storage answered 409 download_source_changed</span><span class='tstring_end'>"</span></span></pre></dd>
|
|
189
|
+
|
|
179
190
|
<dt id="VERIFY_CHUNK_BYTES-constant" class="">VERIFY_CHUNK_BYTES =
|
|
180
191
|
<div class="docstring">
|
|
181
192
|
<div class="discussion">
|
|
@@ -237,7 +248,7 @@ IO, as without transfer:; other failures leave it open, holding what was written
|
|
|
237
248
|
<li class="public ">
|
|
238
249
|
<span class="summary_signature">
|
|
239
250
|
|
|
240
|
-
<a href="#download_content-class_method" title="download_content (class method)">.<strong>download_content</strong>(job, file, io, progress: nil) ⇒ Object </a>
|
|
251
|
+
<a href="#download_content-class_method" title="download_content (class method)">.<strong>download_content</strong>(job, file, io, progress: nil, check_download_modification_time: nil) ⇒ Object </a>
|
|
241
252
|
|
|
242
253
|
|
|
243
254
|
|
|
@@ -259,7 +270,7 @@ IO, as without transfer:; other failures leave it open, holding what was written
|
|
|
259
270
|
<li class="public ">
|
|
260
271
|
<span class="summary_signature">
|
|
261
272
|
|
|
262
|
-
<a href="#download_file-class_method" title="download_file (class method)">.<strong>download_file</strong>(job, file, local_path, progress: nil) ⇒ Object </a>
|
|
273
|
+
<a href="#download_file-class_method" title="download_file (class method)">.<strong>download_file</strong>(job, file, local_path, progress: nil, check_download_modification_time: nil) ⇒ Object </a>
|
|
263
274
|
|
|
264
275
|
|
|
265
276
|
|
|
@@ -335,7 +346,7 @@ IO, as without transfer:; other failures leave it open, holding what was written
|
|
|
335
346
|
<li class="public ">
|
|
336
347
|
<span class="summary_signature">
|
|
337
348
|
|
|
338
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(job, file, open_sink, checkpoint: nil, lease: nil, progress: nil) ⇒ DownloadCoordinator </a>
|
|
349
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(job, file, open_sink, checkpoint: nil, lease: nil, progress: nil, check_download_modification_time: nil) ⇒ DownloadCoordinator </a>
|
|
339
350
|
|
|
340
351
|
|
|
341
352
|
|
|
@@ -378,7 +389,7 @@ IO, as without transfer:; other failures leave it open, holding what was written
|
|
|
378
389
|
<div class="method_details first">
|
|
379
390
|
<h3 class="signature first" id="initialize-instance_method">
|
|
380
391
|
|
|
381
|
-
#<strong>initialize</strong>(job, file, open_sink, checkpoint: nil, lease: nil, progress: nil) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::DownloadCoordinator (class)">DownloadCoordinator</a></span></tt>
|
|
392
|
+
#<strong>initialize</strong>(job, file, open_sink, checkpoint: nil, lease: nil, progress: nil, check_download_modification_time: nil) ⇒ <tt><span class='object_link'><a href="" title="Files::Transfer::DownloadCoordinator (class)">DownloadCoordinator</a></span></tt>
|
|
382
393
|
|
|
383
394
|
|
|
384
395
|
|
|
@@ -400,24 +411,6 @@ options, and the transport for its content requests, which refuses a client whos
|
|
|
400
411
|
<pre class="lines">
|
|
401
412
|
|
|
402
413
|
|
|
403
|
-
308
|
|
404
|
-
309
|
|
405
|
-
310
|
|
406
|
-
311
|
|
407
|
-
312
|
|
408
|
-
313
|
|
409
|
-
314
|
|
410
|
-
315
|
|
411
|
-
316
|
|
412
|
-
317
|
|
413
|
-
318
|
|
414
|
-
319
|
|
415
|
-
320
|
|
416
|
-
321
|
|
417
|
-
322
|
|
418
|
-
323
|
|
419
|
-
324
|
|
420
|
-
325
|
|
421
414
|
326
|
|
422
415
|
327
|
|
423
416
|
328
|
|
@@ -430,12 +423,32 @@ options, and the transport for its content requests, which refuses a client whos
|
|
|
430
423
|
335
|
|
431
424
|
336
|
|
432
425
|
337
|
|
433
|
-
338
|
|
426
|
+
338
|
|
427
|
+
339
|
|
428
|
+
340
|
|
429
|
+
341
|
|
430
|
+
342
|
|
431
|
+
343
|
|
432
|
+
344
|
|
433
|
+
345
|
|
434
|
+
346
|
|
435
|
+
347
|
|
436
|
+
348
|
|
437
|
+
349
|
|
438
|
+
350
|
|
439
|
+
351
|
|
440
|
+
352
|
|
441
|
+
353
|
|
442
|
+
354
|
|
443
|
+
355
|
|
444
|
+
356
|
|
445
|
+
357
|
|
446
|
+
358</pre>
|
|
434
447
|
</td>
|
|
435
448
|
<td>
|
|
436
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
449
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 326</span>
|
|
437
450
|
|
|
438
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_open_sink'>open_sink</span><span class='comma'>,</span> <span class='label'>checkpoint:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>lease:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
451
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_open_sink'>open_sink</span><span class='comma'>,</span> <span class='label'>checkpoint:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>lease:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
439
452
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='rparen'>)</span>
|
|
440
453
|
<span class='ivar'>@path</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Checkpoint.html" title="Files::Transfer::Checkpoint (class)">Checkpoint</a></span></span><span class='period'>.</span><span class='id identifier rubyid_frozen'><span class='object_link'><a href="Checkpoint.html#frozen-class_method" title="Files::Transfer::Checkpoint.frozen (method)">frozen</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
|
441
454
|
<span class='ivar'>@download_uri</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Checkpoint.html" title="Files::Transfer::Checkpoint (class)">Checkpoint</a></span></span><span class='period'>.</span><span class='id identifier rubyid_frozen'><span class='object_link'><a href="Checkpoint.html#frozen-class_method" title="Files::Transfer::Checkpoint.frozen (method)">frozen</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='period'>.</span><span class='id identifier rubyid_download_uri'>download_uri</span><span class='rparen'>)</span>
|
|
@@ -452,6 +465,8 @@ options, and the transport for its content requests, which refuses a client whos
|
|
|
452
465
|
<span class='ivar'>@digest</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>Digest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SHA256</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
453
466
|
<span class='ivar'>@total</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
454
467
|
<span class='ivar'>@version</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
468
|
+
<span class='ivar'>@check_dates</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DownloadDate.html" title="Files::Transfer::DownloadDate (class)">DownloadDate</a></span></span><span class='period'>.</span><span class='id identifier rubyid_enabled'><span class='object_link'><a href="DownloadDate.html#enabled-class_method" title="Files::Transfer::DownloadDate.enabled (method)">enabled</a></span></span><span class='lparen'>(</span><span class='ivar'>@options</span><span class='comma'>,</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span><span class='rparen'>)</span>
|
|
469
|
+
<span class='ivar'>@download_date</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="DownloadDate.html" title="Files::Transfer::DownloadDate (class)">DownloadDate</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadDate.html#initialize-instance_method" title="Files::Transfer::DownloadDate#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='label'>enabled:</span> <span class='ivar'>@check_dates</span><span class='rparen'>)</span>
|
|
455
470
|
<span class='ivar'>@generation</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
456
471
|
<span class='ivar'>@open</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
457
472
|
<span class='ivar'>@next_number</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
@@ -503,23 +518,23 @@ when io ends before them.</p>
|
|
|
503
518
|
<pre class="lines">
|
|
504
519
|
|
|
505
520
|
|
|
506
|
-
53
|
|
507
|
-
54
|
|
508
|
-
55
|
|
509
|
-
56
|
|
510
|
-
57
|
|
511
|
-
58
|
|
512
|
-
59
|
|
513
521
|
60
|
|
514
522
|
61
|
|
515
523
|
62
|
|
516
524
|
63
|
|
517
525
|
64
|
|
518
526
|
65
|
|
519
|
-
66
|
|
527
|
+
66
|
|
528
|
+
67
|
|
529
|
+
68
|
|
530
|
+
69
|
|
531
|
+
70
|
|
532
|
+
71
|
|
533
|
+
72
|
|
534
|
+
73</pre>
|
|
520
535
|
</td>
|
|
521
536
|
<td>
|
|
522
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
537
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 60</span>
|
|
523
538
|
|
|
524
539
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_digest_of'>digest_of</span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='id identifier rubyid_bytes'>bytes</span><span class='comma'>,</span> <span class='id identifier rubyid_chunk'>chunk</span><span class='rparen'>)</span>
|
|
525
540
|
<span class='id identifier rubyid_digest'>digest</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>Digest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SHA256</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
@@ -543,7 +558,7 @@ when io ends before them.</p>
|
|
|
543
558
|
<div class="method_details ">
|
|
544
559
|
<h3 class="signature " id="download_content-class_method">
|
|
545
560
|
|
|
546
|
-
.<strong>download_content</strong>(job, file, io, progress: nil) ⇒ <tt>Object</tt>
|
|
561
|
+
.<strong>download_content</strong>(job, file, io, progress: nil, check_download_modification_time: nil) ⇒ <tt>Object</tt>
|
|
547
562
|
|
|
548
563
|
|
|
549
564
|
|
|
@@ -555,15 +570,15 @@ when io ends before them.</p>
|
|
|
555
570
|
<pre class="lines">
|
|
556
571
|
|
|
557
572
|
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
573
|
+
305
|
|
574
|
+
306
|
|
575
|
+
307</pre>
|
|
561
576
|
</td>
|
|
562
577
|
<td>
|
|
563
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
578
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 305</span>
|
|
564
579
|
|
|
565
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_content'>download_content</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
566
|
-
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tlambda'>-></span> <span class='tlambeg'>{</span> <span class='const'><span class='object_link'><a href="DownloadCoordinator/IoSink.html" title="Files::Transfer::DownloadCoordinator::IoSink (class)">IoSink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadCoordinator/IoSink.html#initialize-instance_method" title="Files::Transfer::DownloadCoordinator::IoSink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='id identifier rubyid_progress'>progress</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
|
580
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_content'>download_content</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_io'>io</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
581
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tlambda'>-></span> <span class='tlambeg'>{</span> <span class='const'><span class='object_link'><a href="DownloadCoordinator/IoSink.html" title="Files::Transfer::DownloadCoordinator::IoSink (class)">IoSink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadCoordinator/IoSink.html#initialize-instance_method" title="Files::Transfer::DownloadCoordinator::IoSink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='id identifier rubyid_progress'>progress</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
|
567
582
|
<span class='kw'>end</span></pre>
|
|
568
583
|
</td>
|
|
569
584
|
</tr>
|
|
@@ -573,7 +588,7 @@ when io ends before them.</p>
|
|
|
573
588
|
<div class="method_details ">
|
|
574
589
|
<h3 class="signature " id="download_file-class_method">
|
|
575
590
|
|
|
576
|
-
.<strong>download_file</strong>(job, file, local_path, progress: nil) ⇒ <tt>Object</tt>
|
|
591
|
+
.<strong>download_file</strong>(job, file, local_path, progress: nil, check_download_modification_time: nil) ⇒ <tt>Object</tt>
|
|
577
592
|
|
|
578
593
|
|
|
579
594
|
|
|
@@ -594,15 +609,15 @@ when io ends before them.</p>
|
|
|
594
609
|
<pre class="lines">
|
|
595
610
|
|
|
596
611
|
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
612
|
+
301
|
|
613
|
+
302
|
|
614
|
+
303</pre>
|
|
600
615
|
</td>
|
|
601
616
|
<td>
|
|
602
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
617
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 301</span>
|
|
603
618
|
|
|
604
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_file'>download_file</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_local_path'>local_path</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
605
|
-
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tlambda'>-></span> <span class='tlambeg'>{</span> <span class='const'><span class='object_link'><a href="DownloadCoordinator/FileSink.html" title="Files::Transfer::DownloadCoordinator::FileSink (class)">FileSink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadCoordinator/FileSink.html#initialize-instance_method" title="Files::Transfer::DownloadCoordinator::FileSink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_local_path'>local_path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_local_path'>local_path</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='id identifier rubyid_progress'>progress</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
|
619
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_download_file'>download_file</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='id identifier rubyid_local_path'>local_path</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
620
|
+
<span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_file'>file</span><span class='comma'>,</span> <span class='tlambda'>-></span> <span class='tlambeg'>{</span> <span class='const'><span class='object_link'><a href="DownloadCoordinator/FileSink.html" title="Files::Transfer::DownloadCoordinator::FileSink (class)">FileSink</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="DownloadCoordinator/FileSink.html#initialize-instance_method" title="Files::Transfer::DownloadCoordinator::FileSink#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_local_path'>local_path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_local_path'>local_path</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='id identifier rubyid_progress'>progress</span><span class='comma'>,</span> <span class='label'>check_download_modification_time:</span> <span class='id identifier rubyid_check_download_modification_time'>check_download_modification_time</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span>
|
|
606
621
|
<span class='kw'>end</span></pre>
|
|
607
622
|
</td>
|
|
608
623
|
</tr>
|
|
@@ -624,23 +639,23 @@ when io ends before them.</p>
|
|
|
624
639
|
<pre class="lines">
|
|
625
640
|
|
|
626
641
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
642
|
+
309
|
|
643
|
+
310
|
|
644
|
+
311
|
|
645
|
+
312
|
|
646
|
+
313
|
|
647
|
+
314
|
|
648
|
+
315
|
|
649
|
+
316
|
|
650
|
+
317
|
|
651
|
+
318
|
|
652
|
+
319
|
|
653
|
+
320
|
|
654
|
+
321
|
|
655
|
+
322</pre>
|
|
641
656
|
</td>
|
|
642
657
|
<td>
|
|
643
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
658
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 309</span>
|
|
644
659
|
|
|
645
660
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='id identifier rubyid_job'>job</span><span class='comma'>,</span> <span class='id identifier rubyid_checkpoint'>checkpoint</span><span class='comma'>,</span> <span class='id identifier rubyid_destination'>destination</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='comma'>,</span> <span class='label'>progress:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
|
646
661
|
<span class='id identifier rubyid_checkpoint'>checkpoint</span><span class='period'>.</span><span class='id identifier rubyid_resuming'>resuming</span><span class='lparen'>(</span><span class='symbol'>:download</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_lease'>lease</span><span class='op'>|</span>
|
|
@@ -698,12 +713,12 @@ when io ends before them.</p>
|
|
|
698
713
|
<pre class="lines">
|
|
699
714
|
|
|
700
715
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
716
|
+
76
|
|
717
|
+
77
|
|
718
|
+
78</pre>
|
|
704
719
|
</td>
|
|
705
720
|
<td>
|
|
706
|
-
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line
|
|
721
|
+
<pre class="code"><span class="info file"># File 'lib/files.com/transfer/download_coordinator.rb', line 76</span>
|
|
707
722
|
|
|
708
723
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_takes_buffer?'>takes_buffer?</span><span class='lparen'>(</span><span class='id identifier rubyid_io'>io</span><span class='rparen'>)</span>
|
|
709
724
|
<span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>IO</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>StringIO</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lparen'>(</span><span class='kw'>defined?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Tempfile</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_io'>io</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Tempfile</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
|
@@ -718,7 +733,7 @@ when io ends before them.</p>
|
|
|
718
733
|
</div>
|
|
719
734
|
|
|
720
735
|
<div id="footer">
|
|
721
|
-
Generated on
|
|
736
|
+
Generated on Sat Nov 14 22:52:46 2026 by
|
|
722
737
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
723
738
|
0.9.45 (ruby-4.0.9).
|
|
724
739
|
</div>
|