Search
Thursday, 15th of August 2019, 5:51:46 UTC
14:53:22
zmyrgel
hi, I'm having problems listing files in customer specific subdirectories
14:53:29
zmyrgel
heres my failing code: https://pastebin.com/WedgK8i0
14:54:10
zmyrgel
its odd as make-pathname call seems to create proper pathname for the sub directory
14:54:41
zmyrgel
but then the directory-files seems to list files at 'alerts' directory for some reason
14:56:12
zmyrgel
I'd like to have the list-customer-alerts function return list of *.net files in customers directory
14:56:19
Lycurgus
pathnames is a common snag
14:57:54
Lycurgus
unclear from the pastebin what platform
14:58:20
zmyrgel
shouldn't pathnames solve the platform issue
14:59:05
Lycurgus
no it's highly platform specific, if uiop or whatever were super robust maybe
14:59:26
_death
zmyrgel: if it's a subdirectory, you should (merge-pathnames (make-pathname :directory (list :relative customer)) *alert-dir*)
15:00:25
zmyrgel
_death: and it seems to work, thanks
15:09:19
schweers
I have not tried this, but I think using :name customer is a mistake. This means that you have a file with the name of the value of CUSTOMER, instead of appending said value to the directory part of the path.
15:42:38
zmyrgel
is osicat still the best option to read file modified time?
16:27:54
ebrasca
It is hard to think what to write next.
16:38:26
ck_
"all you have to do is push the right buttons in the right order"
17:07:44
ShamelessMendica
** NICK ShamefulMendican
17:07:50
ShamefulMendican
** NICK ShamedMendicant
Thursday, 15th of August 2019, 17:51:46 UTC