-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove from windows dir ? #5
Comments
Haven't tested with Windows yet. But could you try this and and paste the output here? var result = findRemoveSync('c:\Temp', {test: true});
console.log(result); If you use a newer Window version, probably try using this path instead: Not sure here. Maybe some work is needed here to make find-remove truly Windows-compatible. |
See below. Not sure why I have to use specific directories. Isn't your code suppose to work on any give directory ?
and the output is :
|
oh sorry, I just noticed it works fine on windows..what was not working is age.seconds argument, doesn't remove files
|
@irom77 have you verified the age of these jpg files? you sure they older than one hour? |
See below
|
both try this: var result = findRemoveSync('D:\ftproot\mds_backup2', {test: true, age: {seconds: 172800},extensions: '.txt'});
console.log(result); and share the output here altogether with the contents of that directory. then we can start investigating the problem. (be careful, if you do a |
Here it is: D:\ftproot\nodejs>node repstat2.js D:\ftproot\nodejs>dir d:\ftproot\mds_backup2*.txt Directory of d:\ftproot\mds_backup2 04/20/2015 07:36 AM 67,402 kernel_debug-MAR-VSX-015.txt D:\ftproot\nodejs> |
Right, that's evidence that something is wrong. It's unfortunate that I have no Windows machine here to reproduce and fix this. If I were you, I would add some add When the path for the file |
How do I put absolute Windows path ?
The text was updated successfully, but these errors were encountered: