This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: https://apple.stackexchange.com/questions/328329/is-there-a-way-via-the-command-line-to-cause-icloud-files-to-download | |
import Foundation | |
func main() { | |
let fm = FileManager.default | |
for path in CommandLine.arguments[1...] { | |
let url = NSURL.fileURL(withPath: path) | |
guard fm.fileExists(atPath: url.path) else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -wl | |
use strict; | |
my $limit = 20 * 1024 * 1024; | |
my $hasBadFiles; | |
# human friendly sizes | |
sub hsize { | |
# http://www.perlmonks.org/?node_id=378580 | |
(sort { length $a <=> length $b } map { sprintf '%.2g %s', |