Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File Listing To Arrays
#4
On Manjaro KDE v22.0.4 for me this produces incorrect output.

See the screenshot below. One of the PNG files is being picked up as a directory for some reason.

I was forced to change the subprogram call to this:

Code: (Select All)
GetFileList environ$("HOME") + "/Downloads", Dir(), File()

changed away from _CWD$ function, because using this at the command line:

Code: (Select All)
$ $HOME/bin/qbpe/getfileslistex
$ # - OR -
$ /home/user/bin/qbpe/getfileslistex

showed me the list of files and subfolders of the directory that executable resides in.

I hope somebody could check this out in a different Linux distro. All I did was create four pictures with GIMP and exported them all to PNG, and I don't think there's anything special with "Downloads" when compared to the other Home members. The "four-faces..." file was the output for something I was working on when I stumbled upon this problem. It was from a QB64 program that saved to BMP, then "magick" program was used to convert to PNG.

(My user's log-in name isn't "user" and I'm not going to give it away, and I have given various names to a directory right under the Home which holds PPA's, AppImages and other such executables for Linux and Windows. This particular directory is called "bin" because it's what I came across in one of the distros. In a different Linux installation it's called "zapim". But it wasn't dominated by AppImages. It starts with "z" because I wanted it listed last in the file manager. The screenshots are supposed to have the user's log-in name in certain parts of the report from "ls" and "stat" programs.)


[Image: pic-file-is-not-a-directory.png]
Reply


Messages In This Thread
File Listing To Arrays - by SMcNeill - 04-20-2022, 02:22 AM
RE: File Listing To Arrays - by mpgcan - 05-14-2022, 04:44 PM
RE: File Listing To Arrays - by SMcNeill - 05-14-2022, 05:15 PM
RE: File Listing To Arrays - by mnrvovrfc - 03-23-2023, 07:39 PM
RE: File Listing To Arrays - by SpriggsySpriggs - 03-23-2023, 08:16 PM
RE: File Listing To Arrays - by SMcNeill - 03-23-2023, 08:18 PM
RE: File Listing To Arrays - by mnrvovrfc - 03-23-2023, 08:58 PM
RE: File Listing To Arrays - by Petr - 03-25-2023, 07:55 PM



Users browsing this thread: 1 Guest(s)