onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
236 stars 26 forks source link

help: permission error on read/copy/write attempt on directories #145

Closed carlomigueldy closed 3 years ago

carlomigueldy commented 3 years ago

I am receiving permission error whenever I try to read or copy directory from one to another.

image

flutter doctor image

Anyone got any ideas how I fix this up? I am using Git Bash terminal

bsutton commented 3 years ago

This doesn't appear to be a dcli related issue.

It simply looks like you don't have read privileges for the file in question.

Only thought is 'app' and directory or a file? If its a directory then read will always fail.

Have you tried running the query with 'Run as Administrator'?

S. Brett Sutton Noojee Contact Solutions 03 8320 8100

On Thu, 27 May 2021 at 13:44, Carlo Miguel Dy @.***> wrote:

I am receiving permission error whenever I try to read or copy directory from one to another.

[image: image] https://user-images.githubusercontent.com/45052332/119762687-bbf0bc00-bee0-11eb-85e0-b17b72ae7888.png

flutter doctor [image: image] https://user-images.githubusercontent.com/45052332/119762712-c9a64180-bee0-11eb-965b-27a7c839dff4.png

Anyone got any ideas how I fix this up? I am using Git Bash terminal

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bsutton/dcli/issues/145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OBW5IYRJ2DWUTYBLYLTPW525ANCNFSM45TLBWPQ .

carlomigueldy commented 3 years ago

How do I "Run as Administrator"?

I am executing this command ./main.exe -b foobar

carlomigueldy commented 3 years ago

I just tested out, I opened Command Prompt as admin and tried it out, unfortunately it didn't

bsutton commented 3 years ago

When you start the command prompt or powershell you there is an option 'Run as Administrator'

https://www.digitalcitizen.life/run-as-admin/

S. Brett Sutton Noojee Contact Solutions 03 8320 8100

On Thu, 27 May 2021 at 18:45, Carlo Miguel Dy @.***> wrote:

How do I "Run as Administrator"?

I am executing this command ./main.exe -b foobar

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bsutton/dcli/issues/145#issuecomment-849454658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OCV74CCVZP7VWIMS7LTPYBCDANCNFSM45TLBWPQ .

carlomigueldy commented 3 years ago

Hey man, I just resolved it

If its a directory then read will always fail.

This got me thinking from your statement, so it works now!

Thanks man

bsutton commented 3 years ago

FYI: if you are trying to get a directory listing use the 'find' command.