Menu

#737 Create a 'getfileinfo()' function

v1.1.x
closed
v1.1.4
New Functionality
2022-09-18
2022-09-11
Erik Hänel
No

Create a getfileinfo(sPath) function, which shall return a key-value list like the following:

{"FileName", sName, "FileExtension", sExt, "FileSize", nSize, "CreationTime", tTime, "ModificationTime", tTime} = getfileinfo(sPath)

Analysis:

This function can be implemented as part of the FileSystem class and reference to the standard Windows API.

Implementation:

  • Implementation: Implemented as proposed by the analysis.
  • Revision: [r1214]
  • Implementation test: Different file scenarios had been tested as well as directories

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [x] corresponding documentation articles updated
    • [ ] new documentation articles created
    • [ ] not needed
  • Language files:
    • [x] corresponding language files updated
    • [ ] not needed

Tests:

Added the new function to the automatic SW tests. No deviation detected.

Related

Commit: [r1214]

Discussion

  • Erik Hänel

    Erik Hänel - 2022-09-12
    • labels: --> function, internal, strings
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2022-09-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,25 @@
     Create a `getfileinfo(sPath)` function, which shall return a key-value list like the following:
    
         {"FileName", sName, "FileExtension", sExt, "FileSize", nSize, "CreationTime", tTime, "ModificationTime", tTime} = getfileinfo(sPath)
    
    +    
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2022-09-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,7 +3,7 @@
         {"FileName", sName, "FileExtension", sExt, "FileSize", nSize, "CreationTime", tTime, "ModificationTime", tTime} = getfileinfo(sPath)
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +This function can be implemented as part of the `FileSystem` class and reference to the standard Windows API.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2022-09-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,19 +6,19 @@
     This function can be implemented as part of the `FileSystem` class and reference to the standard Windows API.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: Implemented as proposed by the analysis.
    +* Revision: [r1214]
    +* Implementation test: Different file scenarios had been tested as well as directories
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
    -    * [ ] corresponding documentation articles updated
    +    * [x] corresponding documentation articles updated
         * [ ] new documentation articles created
         * [ ] not needed
     * **Language files:**
    -    * [ ] corresponding language files updated
    +    * [x] corresponding language files updated
         * [ ] not needed
    
     ###Tests:
    
    • status: implementing --> testing
     

    Related

    Commit: [r1214]

  • Erik Hänel

    Erik Hänel - 2022-09-18
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -22,4 +22,4 @@
    
         * [ ] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Added the new function to the automatic SW tests. No deviation detected.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB