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
<?php | |
/** | |
* FileZillaXML library | |
* | |
* ### DESCRIPTION | |
* | |
* With the FileZillaXML library you can easily create an XML with servers and folders that can be | |
* imported into FileZilla. | |
* |
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
## | |
## zip command itself can clean it up for you | |
Can be fixed after the fact by `zip -d filename.zip __MACOSX/\*` |
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/env ruby | |
require 'tempfile' | |
require 'fileutils' | |
# Signals | |
trap("SIGINT") { exit } | |
# Setup | |
TARGET_FOLDER = ARGV[0] | |
TARGET_URL = ARGV[1] |
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
var ReadDirAssistant = function() { | |
} | |
ReadDirAssistant.prototype.run = function(future) { | |
var fs = IMPORTS.require("fs"); | |
var path = this.controller.args.path; | |
fs.readdir(path, function(err, files) { future.result = { path: path, files: files }; }); | |
} |