Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

updateAndDelete does update, but not delete when destination is UNC path #18

@chrischain

Description

@chrischain

Hello, just updated to v0.2.0 because I'm really looking forward to the destination file deletion, but so far it is not working for me. I'm wondering if it has something to do with the fact that my destination is a UNC path...

Here are the relevant parts of my gruntfile.js:

//this variable holds the target UNC path for file transfers
var devPath = '//abcdefg01/Webdev/Unit/ump.dev.company.com/ease/schedules/';

module.exports = function(grunt) {
    var rev = 1744;

    //project configuration
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        sync: {
            main: {
                files: [{
                    cwd: './',
                    src: ['**/*.cfc', '**/*.cfm', '**/*.css', '**/*.gif', '**/*.js', '**/*.png', //includes
                    '!**/gruntfile.js', '!**/DO_NOT_UPLOAD/**', '!**/node_modules/**', '!**/out/**' //excludes
                    ],
                    dest: devPath
                }],
                pretend: true,
                updateAndDelete: true,
                verbose: true
            }
        }
    });

    //load plug-ins
    grunt.loadNpmTasks('grunt-sync');

I've tried with pretend true || false, nothing seems to change.

Any help/guidance is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions