flysystem-google-drive-ext icon indicating copy to clipboard operation
flysystem-google-drive-ext copied to clipboard

Moving folders will fall into the trash

Open hrnicek opened this issue 1 year ago • 3 comments

Hello everyone,

If I want to move a folder to a folder, the folder gets deleted to the trash:

    Route::get('/move', function () {

    $directoryName = 'TEST';
    $directoryNameTo = 'TEST2';

    Storage::cloud()->makeDirectory($directoryName);
    Storage::cloud()->makeDirectory($directoryNameTo);

    Storage::cloud()->move($directoryName, $directoryNameTo);

    return 'Directory was renamed in Google Drive';
});

Anyone have a similar problem?

hrnicek avatar Mar 07 '24 17:03 hrnicek

laravel-google-drive-ext-demo/routes/web.php#L142-L149

I always tried that demo and it worked correctly, I don't think anything has changed

erikn69 avatar Mar 07 '24 17:03 erikn69

Feel free to make a PR with the fix

angeljqv avatar Jun 20 '24 19:06 angeljqv

Hi, could you test #127

erikn69 avatar Jun 20 '24 20:06 erikn69