You can use readdir to accomplish this:
shell> ls -R
.:
A B
./A:
C file1 file2
./A/C:
test3
./B:
julia> function mv_inner(A, B)
for f in readdir(A)
mv(joinpath(A, f), joinpath(B, f))
end
end
mv_inner (generic function with 1 method)
julia> mv_inner("A","B")
shell> ls -R
.:
A B
./A:
./B:
C file1 file2
./B/C:
test3
readdir will read the files & directories of the given path and mv can already work with those. Using joinpath is preferred over string concatenation, as it is platform aware and will work across platforms.
Also, Julia is not a shell - globbing via * in a string is not a thing.