I am getting
name too long (ENAMETOOLONG) when i try to move file from one folder to another.
My code is as given below
`for i in 1:length(IO)
if err>ind; continue; end
well, your file name is too long:
You are using the whole
IO (whatever that is, I assume a list of filenames by looking at the error above) in the string interpolation:
[i] is not picked up. You can also see it in the syntax colouring, the
[i] appears red (in your editor-- in the screenshot above --it’s blue).
This means that the whole
IO array is dumped into your
mv command, which is obviously too long.
You need to use parentheses to include that in the interpolation:
as you can see
$(IO[i]) is now “black” that’s what gets replaced by the
ith value of