Differential operators and foliations