# NAS Folder Linker 3.1 ## App updates Choose **Check for Updates…** in the menu bar to check now. Sparkle also checks once a day while the app is running and presents available updates for you to install. Updates are never installed silently. The update archive and feed are verified using the app's public Ed25519 key, and Mac releases are Developer ID signed and notarized. Installation pauses new scans and waits for an active transfer to finish before restarting. If the update fails or is canceled, scheduled scans resume. NAS settings, timing, login settings and transfer journals remain in their existing locations. Version 3.0 and earlier require one manual installation of 3.1 to add the updater. Future versions can be installed from the app. ## What it does Downloads stays a normal folder on your Mac. The app watches it while running, copies completed items to your NAS, verifies the stored contents, and then removes the local item. Successful transfers do not retain another local backup or put the item in Trash; the verified NAS copy is where you retrieve it. Documents is no longer managed. There are no Link, Restore, iCloud preparation or Documents controls in version 3. ## Start using it 1. Quit the older app, extract the signed macOS release ZIP, move NAS Folder Linker.app to Applications, and open it. 2. Connect your NAS in Finder. Choose **Settings → Choose NAS Folder…** and select the destination folder on that mounted share. On this Mac, an existing destination from the older Downloads journal is used when it can be verified against the connected NAS. Other users choose their own mounted share. 3. Leave **Automatic Transfers** on. The default wait is **60 minutes**, with a check every **15 seconds**. Change both under **Settings → Transfer Timing…**. The wait can be 0–10,080 minutes; checks can be 5–3,600 seconds apart. 4. Use **Move Downloads Now…** for an immediate check that skips your configured wait. It still leaves open items and unfinished downloads alone. 5. Enable **Start at Login** if desired. Automatic transfers only run while the menu bar app is open and the Mac is awake. The wait starts when the app first observes an item and restarts when its contents or relevant metadata change. The saved observation time survives app restarts. Existing files at first launch receive the same grace period; Move Now can clear them sooner. Changing your wait applies to the existing observation times on the next check. The icon is green when the NAS is connected. An arrow appears during copying, verification and local cleanup. Yellow means the app is checking, needs a destination, or could not read transfer status. Red means the configured NAS is unavailable. Activity & Status shows the NAS path, local item count, pending transfers and recent results. **Settings → Automatically Reconnect NAS** is on by default. The app checks the saved SMB share after wake and tries to remount it when the share has disappeared. Attempts are at least 30 seconds apart while the share stays offline. macOS handles sign-in. If it needs your credentials, use **Reconnect NAS** to sign in and save them in Keychain. Transfers resume only after the app verifies the expected destination. ## Which items move Completed regular files and folders are transferred as whole items. Folder contents, empty directories and internal symlink targets are checked without following those links into unrelated files. Top-level symbolic links, special files and cloud-only placeholders remain local. Files or apps currently open in another process stay local, including files opened read-only. The app checks again on later scans. Browser partial downloads (`.download`, `.crdownload`, `.part`, `.partial`, `.filepart`, `.tmp`) and folders containing them wait. Even with Move Now, a file must have stopped changing for at least 30 seconds. Hidden top-level entries and Finder metadata are ignored. A visibly empty Downloads folder can still contain macOS metadata. An interrupted transfer can leave a hidden holding directory until recovery completes. If the NAS already contains an identical same-name item, its contents are reverified before removing the local copy. If contents differ, a numbered name such as `example (2).zip` is used. The app never merges directories or overwrites existing NAS items. ## Data protection and interruptions - A new NAS copy is created in a separate staging directory and verified by entry names, types, symlink targets, sizes, empty directories, resource-fork contents and SHA-256 hashes. Copy metadata is requested from macOS `ditto`, subject to NAS support; metadata/ACL equivalence is not hash-verified. - Copies are flushed before local cleanup. On shares without exclusive rename support, final entries are created without overwriting and copied again from verified NAS staging, then reverified. An interrupted publication may leave an incomplete final NAS item; it is retained and a later retry uses a numbered name. The recorded mount identity is checked so a disconnected share is not silently replaced by an ordinary local directory. - Before deletion, the local item is moved into a private holding directory **inside Downloads**, not out of or in place of Downloads itself. This avoids the protected-folder rename used by older versions. Its identity and contents and the NAS copy are checked again before removal. - A durable journal records interrupted transfers. Recovery runs before new transfers. **Move Downloads Now…** also checks pending items. A newly downloaded file appearing at the original name is left alone when an older held item is cleaned up. - If a copy or verification fails, or the NAS is unavailable, local contents are retained. If local cleanup is interrupted, the complete verified NAS copy remains; any remaining local contents are retained for recovery. Activity reports the relevant paths. - Partial NAS staging copies are retained after failed/interrupted copies rather than silently erased. They use `.nas-download-copy-` names in the destination. - Use your NAS's own backup/versioning. This is a transfer utility, not an independent backup of the NAS. The app cannot prevent another program or another NAS user from independently changing files. Leave transfers to finish before disconnecting the NAS. Do not force quit during a transfer unless necessary; the journal supports recovery after interruptions. ## Upgrading from 2.x If Downloads is still a symbolic link, restore it to this Mac using version 2.0.1 before upgrading. Version 3 refuses to clean a linked Downloads folder. Any other folder links or retained originals from version 2 are left untouched; use the older release if you need its restore controls. The bundle identifier remains `com.local.unas-folder-linker` to preserve app identity and login settings. The legacy application-support directory remains `~/Library/Application Support/UNAS Folder Linker` for compatibility. Version 3 uses separate `downloads-transfer-settings.json`, `downloads-arrivals.json` and `downloads-transfers.json` files, and shares the operation lock with the older app. The old migration journal is not overwritten. ## Build and release ```sh ./scripts/bootstrap-sparkle.zsh xcodebuild -project 'NAS Folder Linker.xcodeproj' \ -scheme 'NAS Folder Linker' -configuration Release \ -destination 'generic/platform=macOS' -derivedDataPath .build-xcode \ CODE_SIGNING_ALLOWED=NO build swift test ./scripts/test-updater.zsh ``` `./scripts/release.zsh /path/to/release-output` signs a universal build (including Sparkle's nested helpers), submits it for Apple notarization, staples the ticket and produces the release ZIP, signed `appcast.xml` and checksums. The first build downloads the pinned Sparkle 2.10.1 SDK from its official release and verifies its SHA-256. `./scripts/install.zsh /path/to/NAS-Folder-Linker-3.1.0-macOS.zip` validates and installs the app, preserving the previous app. Run `scripts/update.command` to build and install in one step. Developer ID keys and notarization credentials remain in the local keychain. Sparkle signatures use the `nas-folder-linker` Keychain account. Never regenerate that key for an existing update channel. For each future release, increase both version fields in Info.plist. Run the filesystem tests and update safety tests, then build with `scripts/release.zsh`. Upload the versioned ZIP to Neon Lava and verify its public hash before publishing the matching signed feed at `https://neon-lava.com/updates/nas-folder-linker/appcast.xml`. Serve the feed with a short cache lifetime (60 seconds), not the immutable caching used by versioned archives. Publish the same ZIP, source and checks in Gitea. Keep old versioned URLs available. The app is not sandbox confined: it needs access to Downloads and the selected network volume. It requests Downloads and network-volume access, with no Documents usage description. Do not run it as root. For an optional real-network check, run `./scripts/validate-nas.zsh /Volumes/YourShare/YourFolder`. It creates an isolated folder of generated test data on that share, never uses your actual Downloads folder, and checks copying, resource forks, conflicts and interruption recovery. To stage the download page and update feed in the existing Neon Lava checkout, run `python3 scripts/stage-website.py /path/to/neon-lava-site /path/to/release-output`. This requires the matching source ZIP alongside the signed app ZIP. Review the staged files, run the website checks, publish the versioned downloads and verify their public hashes before enabling the feed. The staging script does not deploy.