Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346gap> START_TEST("dir.tst"); gap> base := Filename( DirectoriesLibrary( "tst" ), "example-dir");; gap> dirbase := Directory(base);; gap> badbase := Concatenation(base,"cheeseababababab");; gap> baddirbase := Directory(badbase);; gap> dirs := [base, dirbase, badbase, baddirbase];; gap> List(dirs, IsDirectoryPath); [ true, true, false, false ] gap> List(dirs, IsDirectory); [ false, true, false, true ] gap> DirectoryHome() = Directory("~") or ARCH_IS_WINDOWS(); true gap> ForAll([DirectoryHome, DirectoryDesktop,DirectoryCurrent], > x -> (IsDirectoryPath(x()) and IsDirectory(x())) ); true gap> dirTest := Concatenation(base,"/dir-test");; gap> SortedList(DirectoryContents(dirTest)); [ ".", "..", "A", "B", "C", "D" ] gap> SortedList(DirectoryContents(Directory(dirTest))); [ ".", "..", "A", "B", "C", "D" ] gap> STOP_TEST("dir.tst", 270000);