Click here to Skip to main content
15,885,546 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the Day Pin
Mark_Wallace10-Apr-20 10:19
Mark_Wallace10-Apr-20 10:19 
GeneralJulia programming language PinPopular
rjmoses10-Apr-20 4:09
professionalrjmoses10-Apr-20 4:09 
GeneralRe: Julia programming language Pin
PIEBALDconsult10-Apr-20 4:53
mvePIEBALDconsult10-Apr-20 4:53 
GeneralRe: Julia programming language Pin
rjmoses10-Apr-20 6:50
professionalrjmoses10-Apr-20 6:50 
GeneralRe: Julia programming language Pin
PIEBALDconsult10-Apr-20 7:12
mvePIEBALDconsult10-Apr-20 7:12 
GeneralRe: Julia programming language Pin
rjmoses10-Apr-20 7:19
professionalrjmoses10-Apr-20 7:19 
GeneralRe: Julia programming language Pin
F-ES Sitecore10-Apr-20 5:49
professionalF-ES Sitecore10-Apr-20 5:49 
GeneralRe: Julia programming language Pin
rjmoses10-Apr-20 7:18
professionalrjmoses10-Apr-20 7:18 
No. Here's a small sample I was messing with

module A

function ProcessDir(topDir)
    global dirCnt           # Declare these variables as global so they
    global fileCnt          # can be used in the main code.
    global totalSize

# Read recursively through the top, counting directories and files, totaling the 
# file space used and printing the directory or file name to stdout.

    for (root, dirs, files) in walkdir(topDir)  # walkdir function returns tuples
        for dir in dirs                         # Count directories i
            aDir = joinpath(root, dir)           # Create fule path name--same as "root * '/' * dir"
            dirCnt += 1
            println("Directory # ", dirCnt, " = ", aDir)
        end
        
        for file in files                      # Count files and total file sizes.  
            if ((file == ".") || (file == ".."))
                continue
            end
            if (endswith(file, ".md"))          # Select only files with a suffix of "".md"
                fileCnt += 1
                fn = joinpath(root,file)
                sz = stat(fn).size               # Get file permissions and file size
                totalSize += sz
                println("File # ", fileCnt, " = ", fn, ", size = ", sz)
            end
        end
    end
end

# Main processing in this module

dirCnt = 0
fileCnt = 0
totalSize = 0
subDir = ".julia"
println("Starting directory processing")
ProcessDir(joinpath(homedir(), subDir))
println("Directories = ", dirCnt, ", Files = ", fileCnt, ", Total size = ", totalSize)

end
:
GeneralRe: Julia programming language Pin
The-Great-Kazoo13-Apr-20 6:12
professionalThe-Great-Kazoo13-Apr-20 6:12 
GeneralRe: Julia programming language Pin
rjmoses13-Apr-20 10:19
professionalrjmoses13-Apr-20 10:19 
GeneralRe: Julia programming language Pin
Matt McGuire13-Apr-20 8:14
professionalMatt McGuire13-Apr-20 8:14 
GeneralRe: Julia programming language Pin
James Lonero13-Apr-20 8:38
James Lonero13-Apr-20 8:38 
GeneralRe: Julia programming language Pin
rjmoses13-Apr-20 10:21
professionalrjmoses13-Apr-20 10:21 
PraiseRe: Julia programming language Pin
RickZeeland10-Apr-20 7:10
mveRickZeeland10-Apr-20 7:10 
GeneralRe: Julia programming language Pin
CPallini11-Apr-20 6:20
mveCPallini11-Apr-20 6:20 
GeneralRe: Julia programming language Pin
rjmoses13-Apr-20 10:18
professionalrjmoses13-Apr-20 10:18 
GeneralRe: Julia programming language Pin
CPallini13-Apr-20 20:37
mveCPallini13-Apr-20 20:37 
GeneralRe: Julia programming language Pin
rjmoses13-Apr-20 23:29
professionalrjmoses13-Apr-20 23:29 
GeneralRe: Julia programming language Pin
CPallini13-Apr-20 23:58
mveCPallini13-Apr-20 23:58 
GeneralRe: Julia programming language Pin
zezba900013-Apr-20 8:49
zezba900013-Apr-20 8:49 
GeneralRe: Julia programming language Pin
rjmoses13-Apr-20 10:23
professionalrjmoses13-Apr-20 10:23 
GeneralRe: Julia programming language Pin
zezba90003-Jul-20 12:53
zezba90003-Jul-20 12:53 
GeneralMusic of the times PinPopular
Daniel Pfeffer9-Apr-20 23:49
professionalDaniel Pfeffer9-Apr-20 23:49 
GeneralRe: Music of the times Pin
Mike Hankey10-Apr-20 0:05
mveMike Hankey10-Apr-20 0:05 
GeneralRe: Music of the times Pin
Daniel Pfeffer10-Apr-20 0:15
professionalDaniel Pfeffer10-Apr-20 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.