After some thoughts, i've decided that file and directory are components of an filesystem and not just objects.