Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
843 changes: 136 additions & 707 deletions packages/reprint-importer/src/import.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Reprint\Importer\Filesystem;

use RuntimeException;

/**
* A preserve-local rule prevented a filesystem mutation.
*/
class PreserveLocalSkipException extends RuntimeException {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Reprint\Importer\Filesystem;

/**
* Mutable file state retained while one remote file arrives in chunks.
*/
class PulledFileContext {
/** @var resource|null */
public $file_handle = null;

/** @var string|null */
public $file_path = null;

/** @var int|null */
public $file_ctime = null;

/** @var int */
public $file_bytes_written = 0;

/** @var bool */
public $skip_current_file = false;
}
Loading
Loading