Dev2.PathOperations.Dev2ActivityIOBroker.GetWhereToPut C# (CSharp) Method

GetWhereToPut() static private method

static private GetWhereToPut ( IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst ) : string
src IActivityIOOperationsEndPoint
dst IActivityIOOperationsEndPoint
return string
        static string GetWhereToPut(IActivityIOOperationsEndPoint src, IActivityIOOperationsEndPoint dst)
        {
            if(src.IOPath.PathType == enActivityIOPathType.FileSystem)
            {
                // some silly chicken is not getting the directory correctly ?!
                return Path.GetDirectoryName(src.IOPath.Path);
            }
            if(dst.IOPath.PathType == enActivityIOPathType.FileSystem)
            {
                return Path.GetDirectoryName(src.IOPath.Path);
            }
            return null; // this means that neither the src or destination where local files
        }