Comments (7)
Thanks for report, I will investigate this. I'm not sure if I ever tested against zero-byte files, so this certainly can be a bug.
from psfciv.
Hi, sorry for late response.
Finally I've found a time to work on your issue. It appears there are several issues in the code:
- I'm incorrectly detecting the FCIV mode (native or legacy). I'm examining
Size
property in XML database which doesn't exist in legacy FCIV and put the script in legacy FCIV processing mode if its value equals to 0 (default forInt64
). However, file itself can have zero size. I moved detection toTimestamp
property which is more reliable in this case, because it is$null
for legacy - when legacy mode is ON, I'm using
for
loop to iterate over entries in DB and access them by index. However,$db.Entries
is of type ofISet<T>
which doesn't have an indexer. for
loop contains severalreturn
statements which are meant to becontinue
.
maybe there are other issues.
from psfciv.
No rush. I'm just happy you are continuing development of this awesome program.
Thanks for stepping through the code and identifying these different legacy mode issues.
I keep checking back every so often on GitHub and PowerShell Gallery to see if there is a new version of PsFCIV to try out.
from psfciv.
Hello, hope you are well. I believe I've fixed your issue. If you wouldn't mind, please check the most recent version of Start-PsFCIV.ps1 file from this repo and confirm if issue is resolved. If it is, I will update the release on PowerShell Gallery.
There is another
from psfciv.
Happy New Year!
Great!! I've tested the updated code against my data set containing zero byte files, and it now works perfectly while checking DB.xml
Thanks again for looking into this.
from psfciv.
I just want to let you know that updated version is published to PowerShell Gallery as v1.1.
from psfciv.
how store the file relative path in db, but not the absolute path
from psfciv.
Related Issues (9)
- Start-PsFCIV not creating XML DB HOT 3
- Different Problems HOT 2
- The -Recurse switch is not honored when hashing a set of directories HOT 1
- Doesn't work HOT 3
- A special character in a file name causes a <FILE_ENTRY> to be omitted from DB.xml without notifying user. HOT 3
- -Action Rename and -Action Delete fail if the file name contains square brackets. HOT 1
- Does not create database if there is no file in the PATH directory even if -Recurse is selected
- First XML DB build does not record hashing failures HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psfciv.