473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Empty folders

Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl
Aug 6 '08 #1
5 2098
Per Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Wed, 06 Aug 2008 20:51:35 +0200 bearing the
following fruit:
>Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl
You can never ensure a user will do anything. If you are
creating the folders then why not put a file in them also.
Better still have your application cope with the folder
being empty.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Aug 7 '08 #2
Jan Hyde (VB MVP) skrev:

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled with image files before another program can start .. (this
program corrects the images after a given parameter). For this to run right
there must be files present in the folds. So no empty folders.!Per
Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Wed, 06 Aug 2008 20:51:35 +0200 bearing the
following fruit:
>Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl

You can never ensure a user will do anything. If you are
creating the folders then why not put a file in them also.
Better still have your application cope with the folder
being empty.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled by the user with image files before another program can start
... (this program corrects the images after a given parameter). For this
to run right there must be files present in the folders. So no empty
folders.!

kind regards pjl
Aug 7 '08 #3
Per Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Thu, 07 Aug 2008 16:58:51 +0200 bearing the
following fruit:
> Jan Hyde (VB MVP) skrev:

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled with image files before another program can start .. (this
program corrects the images after a given parameter). For this to run right
there must be files present in the folds. So no empty folders.!Per
I'm failing to see the problem. If there are no files to
process then have your program say so to the user.

J
>Juul Larsen <ju**@larsen.dk>'s wild thoughts were
>released on Wed, 06 Aug 2008 20:51:35 +0200 bearing the
following fruit:
>>Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl

You can never ensure a user will do anything. If you are
creating the folders then why not put a file in them also.
Better still have your application cope with the folder
being empty.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled by the user with image files before another program can start
.. (this program corrects the images after a given parameter). For this
to run right there must be files present in the folders. So no empty
folders.!

kind regards pjl
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Aug 7 '08 #4
Jan Hyde (VB MVP) skrev:
Per Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Thu, 07 Aug 2008 16:58:51 +0200 bearing the
following fruit:
> Jan Hyde (VB MVP) skrev:

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled with image files before another program can start .. (this
program corrects the images after a given parameter). For this to run right
there must be files present in the folds. So no empty folders.!Per

I'm failing to see the problem. If there are no files to
process then have your program say so to the user.

J
>Juul Larsen <ju**@larsen.dk>'s wild thoughts were
>>released on Wed, 06 Aug 2008 20:51:35 +0200 bearing the
following fruit:

Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl
You can never ensure a user will do anything. If you are
creating the folders then why not put a file in them also.
Better still have your application cope with the folder
being empty.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled by the user with image files before another program can start
.. (this program corrects the images after a given parameter). For this
to run right there must be files present in the folders. So no empty
folders.!

kind regards pjl

--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Thank You. fast answer.
The program is a batchscript running in the background, with no interact
to the user.
But You are right. This script could scan for empty folders and stop my
application.
Some times the solution is right in front of you, but you can not see it.
regards pjl
Aug 7 '08 #5
Per Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Thu, 07 Aug 2008 17:20:37 +0200 bearing the
following fruit:
>Jan Hyde (VB MVP) skrev:
>Per Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Thu, 07 Aug 2008 16:58:51 +0200 bearing the
following fruit:
>> Jan Hyde (VB MVP) skrev:

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled with image files before another program can start .. (this
program corrects the images after a given parameter). For this to run right
there must be files present in the folds. So no empty folders.!Per

I'm failing to see the problem. If there are no files to
process then have your program say so to the user.

J
>>Juul Larsen <ju**@larsen.dk>'s wild thoughts were
released on Wed, 06 Aug 2008 20:51:35 +0200 bearing the
following fruit:

Hi.
My application creates empty libraries. How do I ensure that the user
copies at least one or more picture files (.jpg) in each of the empty
folders ? Result , no empty folders!
regards pjl
You can never ensure a user will do anything. If you are
creating the folders then why not put a file in them also.
Better still have your application cope with the folder
being empty.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde

Thank you for your response
My application creates empty libraries (names drawn from a database) to
be filled by the user with image files before another program can start
.. (this program corrects the images after a given parameter). For this
to run right there must be files present in the folders. So no empty
folders.!

kind regards pjl

--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde

Thank You. fast answer.
The program is a batchscript running in the background, with no interact
to the user.
But You are right. This script could scan for empty folders and stop my
application.
Some times the solution is right in front of you, but you can not see it.
regards pjl
One thing is for sure and that is that you cannot rely on a
user for these things. All it will do is generate support
calls.
--
Jan Hyde (VB MVP)

https://mvp.support.microsoft.com/profile/Jan.Hyde
Aug 8 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: could ildg | last post by:
I want to check if a folder named "foldername" is empty. I use os.listdir(foldername)== to do this, but it will be very slow if the folder has a lot of sub-files. Is there any efficient ways to do...
1
by: genc ymeri | last post by:
Hi over there, What command should I run to delete folders even if theirs subfolders are not empty with files ????? Thanks in advance.
8
by: J-P-W | last post by:
Hi, anyone got any thoughts on this problem? I have sales reps. that remotely send their data to an ftp server. The office downloads all files, the code creates an empty file, then downloads the...
5
by: Olivier GIL | last post by:
Hello, The method Directory.Delete(path, true) of .NET 2.0 called from within a web app does not work correctly if the initial directory is not empty : all the files inside the root directory...
6
by: Curious | last post by:
In a given folder, there are many sub-folders. Is there an easy way to find out those sub-folders that don't contain any file (empty sub- folders)? Is there such a utility in .NET?
2
by: sudhivns | last post by:
Hi, I want to delete a directory only when it is empy and do nothing when some files/folders inside it. (without raising any excpptions). DirectoryInfo.Delete() raising an exception when it is not...
5
by: fniles | last post by:
I am using VB.NET 2005. When I try to delete a folder that has files underneath it, it gave me "the directory is not empty" error. f = New IO.DirectoryInfo("C:\myfolder") If f.Exists Then...
1
by: Christian Heimes | last post by:
otaeris@o2.pl schrieb: As far as I remember the zip format it's not possible at all. Folders are created implicitly. The zip format doesn't support empty directories. Christian
0
by: samz | last post by:
Hello, Here is a simple PHP recursive file list (with interactive and visual FX) Sam's Files http://acc.jexiste.ch/JPN/RecurciveDIR12.RAR 1. How to ignore/avoid empty folders in this PHP script...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.