Skip to content

Commit

Permalink
Fixed critical bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
EGSP committed Dec 15, 2022
1 parent dc0455f commit dc289ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Automata/IO/IDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Directory(string path)

public Directory(IDirectory root, string name)
{
Path = IO.CorrectSlash(root.Path + "/" + name);
Root = root;
Path = IO.CorrectSlash(Root.Path + "/" + name);
}
}
2 changes: 1 addition & 1 deletion Automata/IO/IFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public sealed class File : IFile

public File(IDirectory directory, string name)
{
Path = IO.CorrectSlash(Directory.Path + "/" + Name);
Path = IO.CorrectSlash(directory.Path + "/" + name);
Directory = directory;
Name = name;
}
Expand Down
2 changes: 1 addition & 1 deletion Automata/IO/Relatives/IRelativeFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public RelativeFile(IRelativeDirectory root, string name)
{
RelativeRoot = root;
Name = name;
Path = IO.CorrectSlash(RelativeRoot.Path + name);
Path = IO.CorrectSlash(RelativeRoot.Path+"/" + name);
}
}

0 comments on commit dc289ab

Please sign in to comment.