rorton Posted October 23, 2019 Share Posted October 23, 2019 (edited) Have a number of directories with data in, and i can't browse them via smb. I can browse them via CLI I think the problem is because the directory names have a / in them (i put a date in the directory name of some of these) Loopmasters\ Laidback\ House\ (2642013)/ example above is what the file name looks like from the CLI and the square blocks are question marks which show as / in an SMB browser How is best to get around this, is there a global way i can do a find in the share for any directory with a / in the name, and replace that with a hyphen or similar - and should that fix it? Edited October 23, 2019 by rorton Quote Link to comment
rorton Posted October 23, 2019 Author Share Posted October 23, 2019 as an update, I've manually rename,ed a directory in the cli to remove the date and i can now read it, so that s the problem. I think removing all / could screw things up though If its any easier, all the dates are contained in open and closed brackets - so i could remove the open and closed brackets and anything contained in them Quote Link to comment
rorton Posted October 23, 2019 Author Share Posted October 23, 2019 Fixed it now, did a manual rename of offending directory's to remove the date and backslashes, all good now Quote Link to comment
itimpi Posted October 23, 2019 Share Posted October 23, 2019 (edited) That would make sense. The '/' character is normally a reserved character in folder/filenames. Not sure how you created those names in the first place? Edited October 23, 2019 by itimpi Quote Link to comment
rorton Posted October 23, 2019 Author Share Posted October 23, 2019 yeah its odd - after i renamed them all (and they all work) i just tried again to manually add a date like (23/10/2019) to the dir name, and i was able to do this (I'm on a Mac) Looking at the share, it displays as expected, but then looking at what was created via the cli, it no longer has the / char, but : instead Its many years since i created some of these directories, and im sure it was on a much older version of MAC OS - no idea if at the time, that just created the / char, or it was something to do with a different version of SMB, or if it used AFP - no idea. Either way, its all good - rename fixed it, and if i tried to enter / it replaces with : Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.