MrKim Well-Known Member Licensed User Longtime User Sep 10, 2017 #1 I am copying a lot of large files from a Windows server for speed. Is it possible to get the last modified date from a Windows Server file so I can compare dates to see if they have changed? I know this is changed when copied, I can store the date if I can get it. Thanks
I am copying a lot of large files from a Windows server for speed. Is it possible to get the last modified date from a Windows Server file so I can compare dates to see if they have changed? I know this is changed when copied, I can store the date if I can get it. Thanks
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2017 #2 MrKim said: I am copying a lot of large files from a Windows server for speed. Click to expand... How are you copying them? SMB? FTP? Http? Upvote 0
MrKim said: I am copying a lot of large files from a Windows server for speed. Click to expand... How are you copying them? SMB? FTP? Http?
MrKim Well-Known Member Licensed User Longtime User Sep 10, 2017 #3 Erel said: How are you copying them? SMB? FTP? Http? Click to expand... SMB If I can't get the date from windows, I actually prefer that it sets the date to today. I will just delete anything over a week old and provide the users with a button to 'delete all' if they need to force a refresh but the clean and seamless way would be to check the mod date and see if it is changed. Upvote 0
Erel said: How are you copying them? SMB? FTP? Http? Click to expand... SMB If I can't get the date from windows, I actually prefer that it sets the date to today. I will just delete anything over a week old and provide the users with a button to 'delete all' if they need to force a refresh but the clean and seamless way would be to check the mod date and see if it is changed.
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2017 #4 Call SMB.ListFiles. The SMBFile type includes the last modified date. Upvote 0
MrKim Well-Known Member Licensed User Longtime User Sep 11, 2017 #5 Erel said: Call SMB.ListFiles. The SMBFile type includes the last modified date. Click to expand... Yep just what I need, thanks. Then used your SetLastModified sub https://www.b4x.com/android/forum/threads/file-system.8670/#post-180708 Now I can just compare file dates. Whatever they are paying you it is not enough. Upvote 0
Erel said: Call SMB.ListFiles. The SMBFile type includes the last modified date. Click to expand... Yep just what I need, thanks. Then used your SetLastModified sub https://www.b4x.com/android/forum/threads/file-system.8670/#post-180708 Now I can just compare file dates. Whatever they are paying you it is not enough.