Mac only
hide:
chflags hidden /path/to/file-or-folder
unhide:
chflags nohidden /path/to/file-or-folder