satiromarra / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
23 stars 3 forks source link

Folder with specific rules in project cannot sync. #79

Open BanDroid opened 10 months ago

BanDroid commented 10 months ago

Do you read the FAQ?

Describe the bug i have nextjs 13 project, and i have folders with square brackets [id] which is a dynamic params in nextjs, but your extension never sync folders with this rules, i dont know what settings should be added for this to work. i had to manually copy, paste, and move the files and subfolders inside it.

To Reproduce Steps to reproduce the behavior:

  1. Create folders with square brackets wrapping the name.
  2. And everything inside the folder cannot be downloaded automatically.

Expected behavior Could work the same way as other folder name rules.

Desktop (please complete the following information):

BanDroid commented 10 months ago

the operation that cannot be used is sync from remote to local.

satiromarra commented 10 months ago

@BanDroid In watcher option? If you could share the configuration, I would appreciate it. Hide sensitive data.

BanDroid commented 10 months ago

here is my sftp.json file

{
    "name": "bani",
    "host": "192.168.43.111",
    "protocol": "ftp",
    "port": 2121,
    "username": "my-username",
    "password": "secret123",
    "remotePath": "/",
    "uploadOnSave": true,
    "useTempFile": false,
    "openSsh": false,
    "watcher": {
        "files": "**/*",
        "autoUpload": false,
        "autoDelete": true
    },
    "ignore": [
        ".git",
        ".DS_Store",
        "build",
        "dist",
        "node_modules",
        ".gradle",
        "bin",
        "cache",
        "oat",
        ".next"
    ]
}

the bug is when trying to Sync Remote -> Local if the Remote had [id] folder or anything that wrapped in square brackets because my project is nextjs 13.

satiromarra commented 10 months ago

Ah ok, I had understood that you had a special configuration.

In the output of the logs that shows you?

BanDroid commented 10 months ago

In the output of the logs that shows you?

the logs are fine, nothing wrong with the connection, only local cannot download folder with square brackets, after i rename the folder first, then change it in my local, save the file, it is synced well. i will send here if i seen something new with the output logs.

have you successfully reproduced my issue? just create a folder in remote and wrap the folder name in square brackets, create a file inside it, then try to download the file into local, the file wont be downloaded but the folder is transfered well.

satiromarra commented 9 months ago

@BanDroid I have tested creating the directory "[id]" and it synchronised correctly remote->local and local->remote.

BanDroid commented 9 months ago

@BanDroid I have tested creating the directory "[id]"

did the directory created in remote or local?

satiromarra commented 9 months ago

First I created the directory remotely and then I executed the command to synchronize from remote to local.

BanDroid commented 9 months ago

the folder is fine when sync, but the problem is within the files inside the folder, are the files downloaded correctly?

satiromarra commented 3 months ago

@BanDroid I have done several tests and it works well for me.