Could not find a part of the path /home/MovieApp/Server/Data

I use .net core 2.2. I write code on Windows and then try to run it on Ubuntu 18.04.

Here the code:

private IEnumerable<String> ListFilesAndFolders(String directoryName, String extension)
    var path= Path.GetFullPath(Directory.GetCurrentDirectory());
    return Directory.GetFiles(Path.Combine(path,directoryName), extension, SearchOption.AllDirectories);

directoryName is Data and path is /home/MovieApp/Server.

I do not understand why this code could not find a path?

pwd and ls:


pwd inside of "Data":

pwd inside Data

And :

enter image description here

ls of Data:

ls of data