Comparing version 1.2.0 to 1.3.0
@@ -41,3 +41,4 @@ /** | ||
var destinationPath = CLOUDIFY_FOLDER + '/' + path.basename(filename); | ||
var destinationPath = CLOUDIFY_FOLDER + '/'; | ||
destinationPath += path.basename(cliOptions.name || filename); | ||
@@ -53,2 +54,3 @@ var fileStats = fs.statSync(filename); | ||
console.log('Warning: File with same name already exists. Aborting.'); | ||
console.log('You can use --name to upload the file with a different name.'); | ||
process.exit(1); | ||
@@ -62,3 +64,3 @@ } | ||
var getPublicLink = function() { | ||
var cpath = CLOUDIFY_FOLDER + '/' + path.basename(filename); | ||
var cpath = CLOUDIFY_FOLDER + '/' + path.basename(cliOptions.name || filename); | ||
meocloud.shares(cpath, function(err, data, status) { | ||
@@ -65,0 +67,0 @@ if (err) { throw err; } |
{ | ||
"name": "cloudify", | ||
"description": "Share files from the command line using CloudPT", | ||
"description": "Share files from the command line using MEOCloud / CloudPT", | ||
"author": "Rogério Vicente <rogeriopvl@gmail.com>", | ||
@@ -9,2 +9,3 @@ "keywords": [ | ||
"cloudpt", | ||
"meocloud", | ||
"cli" | ||
@@ -18,3 +19,3 @@ ], | ||
], | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"repository": { | ||
@@ -21,0 +22,0 @@ "type": "git", |
@@ -25,2 +25,3 @@ # Cloudify - Share your files from the command line | ||
-d get the final link to the file instead of the CloudPT preview link | ||
-n | --name (optional) save the file with a custom filename | ||
@@ -27,0 +28,0 @@ After running this command, you'll get the public link to the file that you can share throught IM or IRC or whatever! If you're on OSX, you will also get the public link automatically copied into your clipboard. How cool is that? |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15518
255
30