helixarch / subedit

Command-line subtitle editor written in BASH
GNU General Public License v2.0
92 stars 10 forks source link

Error: No file found. #18

Open FrailDust opened 2 years ago

FrailDust commented 2 years ago

On ubuntu app on windows 10. I try to run "bash /mnt/c/Users/timot/Downloads/subedit-master/subedit.sh -i /mnt/c/Users/timot/sub/Naruto.srt" but it says "Error: No file found." I dont know if maybe I'm somehow inputting the directory incorrectly. "bash /mnt/c/Users/timot/Downloads/subedit-master/subedit.sh -d /mnt/c/Users/timot/sub" seems to work though.

helixarch commented 2 years ago

Have you given execute permission to the file? chmod +x subedit.sh

FrailDust commented 2 years ago

I've done "chmod +x bash /mnt/c/Users/timot/Downloads/subedit-master/subedit.sh" and no change.

ellidi commented 2 years ago

I've done "chmod +x bash /mnt/c/Users/timot/Downloads/subedit-master/subedit.sh" and no change.

Try chmod +x /mnt/c/Users/timot/Downloads/subedit-master/subedit.sh ?

Also, do you have permission to read/write to this dir?

vejkse commented 9 months ago

subedit only works on paths that do not contain the character ‘/’. So it must be run from the directory containing a file with the file name as argument, without any upper directory.

This is the effect of the grep -v / on line 5894, a few lines above the ’No file found’ error: https://github.com/helixarch/subedit/blob/74e11816d7b4813064a2434a5abc0f78f66c0e53/subedit#L5893-L5902

I have no idea why that would be needed.