I'm trying to create an alias that will check if all of the folders in one directory are also in another directory and if not, tell me which ones aren't.This is what I'm trying: alias files_not=for i in var=$(ls -1 ~/Desktop/x/storage | tr '\n' ' ');do if [ ! -d ~/Documents/x/files/${i} ];then echo '${i} files not converted';fi;doneHelp on getting this done? 
Alias for checking if folders in one directory exist in another
bash;shell script;files
This could be fairly easily adapted into an alias:#!/bin/bashfor file in /path/to/dir1/*; do    basefile=${file##*/}    if ! [[ -f /path/to/dir2/$basefile ]]; then        echo $basefile is not present in target location.    fidone