SNOBOL4DIRS(3)
π SNOBOL4DIRS π
okay bestie, so this is the filesystem directory interface for SNOBOL4 β it's giving snobol4dirs, and it's from the CSNOBOL4 manual. basically it's your lil backstage pass to peek at directories like a main character. π
β¨ SYNOPSYS β¨
yes the heading is spelled like that in the original, we don't fix, we respect π
-INCLUDE 'dirs.sno'
πΈ DESCRIPTION πΈ
okay so here's the whole cast, no cap:
OPENDIR(path)β opens up a directory and hands you back a handle. that handle is your bestie for the rest of the convo π«ΆREADDIR(handle)β gives you a filename... or it fails. that's it, that's the vibe. sometimes it slays, sometimes it doesn't πREWINDDIR(handle)β rewinds a directory handle. like hitting the rewind button on the whole directory, we're going back to the start, periodt βͺTELLDIR(handle)β reports where the directory handle is at right now. lil position check, very demure. (heads up tho: this one may not be available on all platforms) πSEEKDIR(handle,position)β adjusts the directory handle position. so you can scoot it wherever you want it to be, iconic β¨CLOSEDIR(handle)β closes the directory handle. say bye bye, we're done here π
π SEE ALSO π
snobol4(1), opendir(3), readdir(3), rewinddir(3), telldir(3), seekdir(3), closedir(3)
go read those too, they're the supporting cast, and honestly? they ate π
π¦ AUTHOR π¦
Philip L. Budne
k that's the whole page, you're so welcome π this was CSNOBOL4B 2.3.1, dated March 31, 2022 β mwah, go read a directory or something, slay πβπ
π¦ where this page comes from
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 43: snobol4 2.3.1-7.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- fedora 44: snobol4 2.3.1-8.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- opensuse-leap 16.0: snobol4 2.3.1-160000.2.2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms