Joakim Ahnfelt-Rønne
03/28/2023, 9:04 AMDuncan Cragg
03/28/2023, 11:25 AMDuncan Cragg
03/28/2023, 12:35 PMJoakim Ahnfelt-Rønne
03/28/2023, 12:50 PMDuncan Cragg
03/28/2023, 12:52 PMJoakim Ahnfelt-Rønne
03/28/2023, 1:01 PMmain
receives System
, which is an object representing access to "everything". It contains other capabilities, such as the FileSystem
, which represents access to the file system. You can further wrap such capabilities yourself to narrow them down, e.g. to only allow access to files in a particular directory.deleteDirectory
is able to delete files because it's passed a FileSystem
, whereas parsePackageLocation
can do no such thing, since it isn't passed any capabilities.Duncan Cragg
03/28/2023, 1:04 PMJoakim Ahnfelt-Rønne
03/28/2023, 1:06 PMDuncan Cragg
03/28/2023, 1:10 PMJoakim Ahnfelt-Rønne
03/28/2023, 1:11 PMDuncan Cragg
03/28/2023, 1:11 PMJoakim Ahnfelt-Rønne
03/28/2023, 1:12 PMAndrew F
03/28/2023, 2:25 PMJoakim Ahnfelt-Rønne
03/28/2023, 2:35 PMAndrew F
03/28/2023, 2:37 PM